opc-agent 4.0.6 → 4.0.7

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.
@@ -434,7 +434,7 @@ function createProvider(name = 'openai', model, baseUrl, apiKey) {
434
434
  else if (finalBaseUrl.includes('dashscope.aliyuncs.com')) {
435
435
  resolvedName = 'qwen';
436
436
  }
437
- return new OpenAICompatibleProvider(resolvedName, finalModel, baseUrl, apiKey);
437
+ return new OpenAICompatibleProvider(resolvedName, finalModel, finalBaseUrl, finalKey);
438
438
  }
439
439
  exports.SUPPORTED_PROVIDERS = ['openai', 'ollama', 'claude-cli', 'deepseek', 'qwen', 'gemini', 'dashscope', 'zhipu', 'moonshot'];
440
440
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Open Agent Framework — Build, test, and run AI Agents for business workstations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -444,7 +444,7 @@ export function createProvider(name: string = 'openai', model?: string, baseUrl?
444
444
  resolvedName = 'qwen';
445
445
  }
446
446
 
447
- return new OpenAICompatibleProvider(resolvedName, finalModel, baseUrl, apiKey);
447
+ return new OpenAICompatibleProvider(resolvedName, finalModel, finalBaseUrl, finalKey);
448
448
  }
449
449
 
450
450
  export const SUPPORTED_PROVIDERS = ['openai', 'ollama', 'claude-cli', 'deepseek', 'qwen', 'gemini', 'dashscope', 'zhipu', 'moonshot'] as const;