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

feat: Add custom function support for OpenAI-o3 model #1826

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

Conversation

ahnafaf
Copy link
Contributor

@ahnafaf ahnafaf commented Feb 2, 2025

Description
This PR adds functionality to the OpenAI-o3 model, building upon the work done in PR #1818. The main changes include:

Implemented support for custom functions in the OpenAI O3 model settings.
Added UI components for adding and editing functions.
Integrated the new function capabilities with the existing API calls.
These changes enhance the flexibility and power of the OpenAI O3 model integration in Chatbox, allowing users to define and use custom functions within their conversations.

Additional Notes
This PR is an extension of the work done in PR #1818. It maintains compatibility with the existing codebase while adding new features to improve the user experience and expand the capabilities of the OpenAI O3 model integration.

Screenshots
image
image

Contributor Agreement
By submitting this Pull Request, I confirm that I have read and agree to the following terms:

I agree to contribute all code submitted in this PR to the open-source community edition licensed under GPLv3 and the proprietary official edition without compensation.
I grant the official edition development team the rights to freely use, modify, and distribute this code, including for commercial purposes.
I confirm that this code is my original work, or I have obtained the appropriate authorization from the copyright holder to submit this code under these terms.
I understand that the submitted code will be publicly released under the GPLv3 license, and may also be used in the proprietary official edition.
Please check the box below to confirm:

[√] I have read and agree with the above statement.

IGLOU-EU and others added 3 commits February 2, 2025 00:26
Implemented support for custom functions in the OpenAI O3 model settings. This feature extends the work done in PR chatboxai#1818, adding UI components for adding and editing functions, as well as integrating with API calls.
@ahnafaf ahnafaf changed the title Pr 1818 Add custom function support for OpenAI-o3 model Feb 2, 2025
@ahnafaf ahnafaf changed the title Add custom function support for OpenAI-o3 model feat: Add custom function support for OpenAI-o3 model Feb 2, 2025
@IGLOU-EU
Copy link

IGLOU-EU commented Feb 3, 2025

That's cool !
If someone want the doc : https://platform.openai.com/docs/guides/function-calling

@ahnafaf
Copy link
Contributor Author

ahnafaf commented Feb 11, 2025

Someone check the conflicts please. package-lock.json should be fine and openai.ts is reasonable. Not sure about ModelSettingTab. It had to be done to save state across chat.

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

Successfully merging this pull request may close these issues.

2 participants