Skip to content

Commit

Permalink
Removed type error for Ci/Cd Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aakash-a-dev committed Nov 22, 2024
1 parent 44ac9b0 commit 83dacd4
Show file tree
Hide file tree
Showing 4 changed files with 249 additions and 29 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"typescript": "5.6.2"
},
"dependencies": {
"@ai-sdk/google": "^1.0.1",
"turbo": "^2.1.1"
},
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/ai/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function getModel(): Promise<LanguageModel> {
throw new Error('Gemini API key is not set');
}
const google = createGoogleGenerativeAI({apiKey: config.geminiKey})
return google(model);
return google(model) as LanguageModel;

case 'Xai':
if (!config.xaiKey) {
Expand Down
5 changes: 3 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
},
"dependencies": {
"@ai-sdk/anthropic": "catalog:",
"@ai-sdk/google": "^1.0.1",
"@ai-sdk/google": "^1.0.3",
"@ai-sdk/openai": "catalog:",
"@ai-sdk/provider": "^1.0.1",
"@srcbook/shared": "workspace:^",
"ai": "^3.3.33",
"ai": "^3.4.33",
"archiver": "^7.0.1",
"better-sqlite3": "^11.3.0",
"cors": "^2.8.5",
Expand Down
Loading

0 comments on commit 83dacd4

Please sign in to comment.