-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add openai responses api capability #7
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?
Changes from all commits
00a1f37
23235ec
c7b6d04
ce39748
d74b983
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ export const myProvider = isTestEnvironment | |
}) | ||
: customProvider({ | ||
languageModels: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Architecture Pattern Issue: Inconsistent provider initialization pattern between the new OpenAI responses API and existing providers. This creates an inconsistent mental model for developers and could lead to confusion during maintenance. Consider using a consistent initialization pattern across all providers: // Either update all providers to use the new pattern
'chat-model-small': openai.responses('gpt-4o-mini'),
'chat-model-large': openai.responses('gpt-4o'),
// Or maintain the previous pattern if it's still supported
'chat-model-small': openai('gpt-4o-mini'),
'chat-model-large': openai('gpt-4o'), |
||
'chat-model-small': openai('gpt-4o-mini'), | ||
'chat-model-large': openai('gpt-4o'), | ||
'chat-model-small': openai.responses('gpt-4o-mini'), | ||
'chat-model-large': openai.responses('gpt-4o'), | ||
'chat-model-reasoning': wrapLanguageModel({ | ||
model: fireworks('accounts/fireworks/models/deepseek-r1'), | ||
middleware: extractReasoningMiddleware({ tagName: 'think' }), | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,7 +20,7 @@ | |||||
}, | ||||||
"dependencies": { | ||||||
"@ai-sdk/fireworks": "0.1.12", | ||||||
"@ai-sdk/openai": "1.2.0", | ||||||
"@ai-sdk/openai": "1.2.2", | ||||||
"@ai-sdk/react": "^1.1.20", | ||||||
"@codemirror/lang-javascript": "^6.2.2", | ||||||
"@codemirror/lang-python": "^6.1.6", | ||||||
|
@@ -40,7 +40,7 @@ | |||||
"@vercel/analytics": "^1.3.1", | ||||||
"@vercel/blob": "^0.24.1", | ||||||
"@vercel/postgres": "^0.10.0", | ||||||
"ai": "4.1.50", | ||||||
"ai": "4.1.54", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainPackage update to This update from 4.1.50 to 4.1.54 is required to support the OpenAI Responses API implementation. The PR comments indicate this adds 14 new transitive dependencies, which is expected for this feature addition. 🏁 Script executed: #!/bin/bash
# Verify the compatibility of these packages by checking their latest versions
echo "Checking latest versions of @ai-sdk/openai and ai packages..."
npm view @ai-sdk/openai version
npm view ai version Length of output: 202 Update
- "ai": "4.1.54",
+ "ai": "^4.3.10", 📝 Committable suggestion
Suggested change
|
||||||
"bcrypt-ts": "^5.0.2", | ||||||
"class-variance-authority": "^0.7.0", | ||||||
"classnames": "^2.5.1", | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Configuration Management Issue: Hardcoded configuration values (
'medium'
for search context size) directly in the route handler reduce modifiability and increase technical debt.Consider extracting configuration values to constants or configuration files: