-
Notifications
You must be signed in to change notification settings - Fork 445
feat(go/plugins/compat_oai): Added xAI support #3605
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
base: main
Are you sure you want to change the base?
Conversation
@hugoaguirre review it please |
Hey @gvozdevs, thanks for the contribution. I'll review the changes in a moment. |
} | ||
|
||
// Initialize Genkit with the xAI plugin | ||
g, err := genkit.Init(ctx, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
genkit.Init
no longer returns an error, it panics if something goes wrong.
@@ -0,0 +1,91 @@ | |||
# OpenAI Plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful if we list the supported features of the plugin. Some providers might have limited functionality if their models are being called using the OpenAI API
}) | ||
|
||
t.Run("invalid config type", func(t *testing.T) { | ||
// Try to use a string as config instead of *ai.GenerationCommonConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be *openai.ChatCompletionNewParams
instead of *ai.GenerationCommonConfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, it looks good. Could you also add a test for Media content parts?
Added support for xAI models
Checklist (if applicable):