openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Chat completion API is deprecating the functions and function_call in favour of tools and tool_choice

Open terryyin opened this issue 2 years ago • 5 comments

In 0.18.2 there's still no "tools" option for the request and no "tool" as a role for response to request.

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

terryyin avatar Nov 27 '23 09:11 terryyin

hi @terryyin

I m not sure if anyone is updating it anymore, you can check - https://github.com/namankhurpia/Easy-open-ai

I have added tools option in Easy OpenAI feel free to visit and raise issues there I m sure I can contribute there freely

Thanks Naman Khurpia

namankhurpia avatar Dec 13 '23 07:12 namankhurpia

@terryyin See here #437

gdorsi44 avatar Dec 13 '23 13:12 gdorsi44

hi @terryyin

I m not sure if anyone is updating it anymore, you can check - https://github.com/namankhurpia/Easy-open-ai

I have added tools option in Easy OpenAI feel free to visit and raise issues there I m sure I can contribute there freely

Thanks Naman Khurpia

dude, at least add some test to your code before inviting the others to use it:P Thanks any way.

terryyin avatar Dec 14 '23 02:12 terryyin

I also need to

xyifhgvnlo286 avatar Dec 19 '23 02:12 xyifhgvnlo286

Hi @terryyin

I test them manually, have those tests in local, running all using a script :) and I dont allow unknown merges so, its safe :)

namankhurpia avatar Dec 23 '23 19:12 namankhurpia