-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support functions/tools in OpenAI API #121
Comments
We can use mistral 7b to test this. It will also be useful to add a Langchain example that leverage this API. |
@xuechendi is working on it. |
@carsonwang, I've been working on this issue but a little lost on How to enable.
Below is my branch for duplicating RayLLM supports for tools/tool_choice: |
pr: #134 |
* merge and update * upd * update asyncio.sleep time
Support functions/tools in the API to enable more use cases.
Refer to the OpenAI document below:
https://platform.openai.com/docs/api-reference/chat/create#chat-create-tools
tools:
A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
tool_choice:
Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. Specifying a particular function via {"type": "function", "function": {"name": "my_function"}} forces the model to call that function.
none is the default when no functions are present. auto is the default if functions are present.
The text was updated successfully, but these errors were encountered: