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

[Chat completion API] Support tools and tool_choice #437

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Tudor44
Copy link

@Tudor44 Tudor44 commented Dec 13, 2023

See #424 for original issue request.

Thanks.

@terryyin
Copy link

Nice. Thanks. The unit test looks a bit lengthy. Just saying.

@Tudor44
Copy link
Author

Tudor44 commented Dec 14, 2023

Nice. Thanks. The unit test looks a bit lengthy. Just saying.

Sure, I have simplified a bit the test.

@the-gigi
Copy link

Hi all, is this PR being reviewed? will it be merged soon? I have a project that uses it to access the OpenAI-compatible Anyscale (anyscale.com). Regular chat completion works just fine, but function calling doesn't work. It does work on the real OpenAI. Also, function calling works on Anyscale when using the Python openai library.

The reason is that the Anyscale, which has OpenAI-compatible API probably doesn't support the deprecated function calling syntax.

I verified that the Python code uses the new syntax (tools, tool_choice), while openai-java uses the old one (functions, function_call).

@Tudor44
Copy link
Author

Tudor44 commented Jan 24, 2024

Hi all, is this PR being reviewed? will it be merged soon? I have a project that uses it to access the OpenAI-compatible Anyscale (anyscale.com). Regular chat completion works just fine, but function calling doesn't work. It does work on the real OpenAI. Also, function calling works on Anyscale when using the Python openai library.

The reason is that the Anyscale, which has OpenAI-compatible API probably doesn't support the deprecated function calling syntax.

I verified that the Python code uses the new syntax (tools, tool_choice), while openai-java uses the old one (functions, function_call).

HI @the-gigi ,

this project seems to be not more maintained.
If you are interested you can review my fork and use it, let me know in case of difficulties.

@swumao
Copy link

swumao commented Feb 21, 2024

The owner of this project has no activities in 2024....
@Tudor44

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

Successfully merging this pull request may close these issues.

None yet

4 participants