Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Support logprobs in chat completion #487

Open
minzhang-haus opened this issue Mar 29, 2024 · 3 comments
Open

Support logprobs in chat completion #487

minzhang-haus opened this issue Mar 29, 2024 · 3 comments

Comments

@minzhang-haus
Copy link

Hi I've seen that there's logprobs support for the old completion endpoint but not for chat. Is there a plan to add that to the chat completion?

https://platform.openai.com/docs/api-reference/chat/create#chat-create-logprobs

@panghy
Copy link

panghy commented Apr 3, 2024

I republished this library (it seems like the maintainer is gone) over at https://github.com/panghy/openai-java, and just so happens that I added logprobs recently:

https://github.com/panghy/openai-java/blob/aba1ca3b8030a6d6de5187cc1fe303de52f1cbd9/example/src/main/java/example/OpenAiApiExample.java#L62

@minzhang-haus
Copy link
Author

@panghy great! thank you!

@sashirestela
Copy link

Maybe you want to take a look at the simple-openai Java library which has support for logprobs in Chat Completions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants