Skip to content
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

[OpenAI] [Scenario] Add conveniences for function calling #42484

Open
joseharriaga opened this issue Mar 7, 2024 · 1 comment
Open

[OpenAI] [Scenario] Add conveniences for function calling #42484

joseharriaga opened this issue Mar 7, 2024 · 1 comment
Labels
Client This issue points to a problem in the data-plane of the library. OpenAI
Milestone

Comments

@joseharriaga
Copy link
Member

joseharriaga commented Mar 7, 2024

Add conveniences to facilitate function calling when using chat completions and assistants. For example, the official OpenAI JavaScript library offers a runTools({...}) convenience helper which automatically calls the JavaScript functions you provide and sends their results back to the /chat/completions endpoint, looping as long as the model requests tool calls (🔗 [[link]].(https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls))

More info about function calling:
Chat completions: 🔗 https://platform.openai.com/docs/guides/function-calling
Assistants: 🔗 https://platform.openai.com/docs/assistants/tools/function-calling

@joseharriaga joseharriaga added Client This issue points to a problem in the data-plane of the library. OpenAI labels Mar 7, 2024
@joseharriaga joseharriaga added this to the Backlog milestone Mar 7, 2024
@joseharriaga joseharriaga changed the title [OpenAI] [Scenario] [Chat] [Assistants] Add conveniences for function calling [OpenAI] [Scenario] Add conveniences for function calling Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. OpenAI
Projects
None yet
Development

No branches or pull requests

1 participant