@agi-cli/sdk 0.1.101 → 0.1.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agi-cli/sdk",
3
- "version": "0.1.101",
3
+ "version": "0.1.102",
4
4
  "description": "AI agent SDK for building intelligent assistants - tree-shakable and comprehensive",
5
5
  "author": "ntishxyz",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import { openai, createOpenAI } from '@ai-sdk/openai';
2
2
  import { anthropic, createAnthropic } from '@ai-sdk/anthropic';
3
- import { google } from '@ai-sdk/google';
3
+ import { google, createGoogleGenerativeAI } from '@ai-sdk/google';
4
4
  import { createOpenRouter } from '@openrouter/ai-sdk-provider';
5
5
  import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
6
6
  import { catalog, createSolforgeModel } from '../../../providers/src/index.ts';
@@ -48,7 +48,8 @@ export async function resolveModel(
48
48
 
49
49
  if (provider === 'google') {
50
50
  if (config.apiKey) {
51
- throw new Error('Google provider config not yet supported in SDK');
51
+ const instance = createGoogleGenerativeAI({ apiKey: config.apiKey });
52
+ return instance(model);
52
53
  }
53
54
  return google(model);
54
55
  }