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

How to use code interpreter or assistant API in this repo? #623

Open
sailxjx opened this issue Dec 15, 2024 · 0 comments
Open

How to use code interpreter or assistant API in this repo? #623

sailxjx opened this issue Dec 15, 2024 · 0 comments

Comments

@sailxjx
Copy link

sailxjx commented Dec 15, 2024

I know this may not be an issue with the project, but currently the OpenAI code interpreter is only available in the assistant interface, and I must use code interpreter in my project.

So I hope to find the best implementation plan. Currently, I have two options (the following "assistant" refers to the OpenAI assistant, not the bot in the AI chatbot):

  1. Use the chat completion API to call the assistant code interpreter with tools. This way, there will be fewer changes based on this repo. However, this may cause issues with the assistant's usage, as the historical messages received by the assistant may be incomplete, and the tools may not be able to accurately generate the necessary instructions for the assistant.

  2. Using the assistant to replace the current chat completion api, this will require completely rewrite the chat routes and may bring other compatibility issues. I'm not sure if I can complete this task.

I hope someone can see this issue and provide some suggestions or reference materials for best practices.

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

No branches or pull requests

1 participant