feat: Add custom function support for OpenAI-o3 model #1826
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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


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.