feat(openai-go): add EINO model component using official OpenAI Go SDK#800
Open
mikeb26 wants to merge 3 commits intocloudwego:mainfrom
Open
feat(openai-go): add EINO model component using official OpenAI Go SDK#800mikeb26 wants to merge 3 commits intocloudwego:mainfrom
mikeb26 wants to merge 3 commits intocloudwego:mainfrom
Conversation
Create a new `components/model/openai-go` module implementing EINO model support backed by `github.com/openai/openai-go/v3` and the Responses API. The component supports tool calling (including required/choices), multimodal inputs, and streaming. Co-authored-by: Octium Agent <agent@octium.dev>
there's a CI test that appears to look for spelling errors. it is incorrectly flagging a unit test with a spelling error. even though "hel" is a perfectly valid substring to search for in a unit test, this commit works around the false positive reported by the test.
Contributor
Author
|
ping? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Create a new
components/model/openai-gomodule implementing EINO model support backed bygithub.com/openai/openai-go/v3and the Responses API. The existing components/model/openai implementation relies on github.com/sashabaranov/go-openai which is no longer active. Newer OpenAI models such as GPT 5.4 no longer fully support the Chat Completions API and require the Responses API. However, github.com/sashabaranov/go-openai does not support the Responses API.Longer term we should avoid having 2 model implementations for OpenAI. In the short term however, to allow users to test this new implementation without risking regressions in the long stable components/model/openai we maintain both temporarily.
Please sees https://developers.openai.com/api/docs/guides/migrate-to-responses for further detail.
What type of PR is this?
feat: A new feature
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
Fixes #782