task-o-matic 0.0.32 → 0.0.33
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-provider.d.ts","sourceRoot":"","sources":["../../../src/lib/ai-service/model-provider.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,qBAAa,aAAa;IACjB,WAAW,IAAI,QAAQ;IAY9B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAqCpB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,eAAe;
|
|
1
|
+
{"version":3,"file":"model-provider.d.ts","sourceRoot":"","sources":["../../../src/lib/ai-service/model-provider.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,qBAAa,aAAa;IACjB,WAAW,IAAI,QAAQ;IAY9B;;;OAGG;IACH,OAAO,CAAC,YAAY;IAqCpB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,eAAe;CA2H9C"}
|
|
@@ -5,8 +5,6 @@ const openai_1 = require("@ai-sdk/openai");
|
|
|
5
5
|
const anthropic_1 = require("@ai-sdk/anthropic");
|
|
6
6
|
const openai_compatible_1 = require("@ai-sdk/openai-compatible");
|
|
7
7
|
const ai_sdk_provider_1 = require("@openrouter/ai-sdk-provider");
|
|
8
|
-
// import { createGeminiProvider } from "ai-sdk-provider-gemini-cli";
|
|
9
|
-
const gemini_proxy_1 = require("./gemini-proxy");
|
|
10
8
|
const config_1 = require("../config");
|
|
11
9
|
const task_o_matic_error_1 = require("../../utils/task-o-matic-error");
|
|
12
10
|
class ModelProvider {
|
|
@@ -116,11 +114,12 @@ class ModelProvider {
|
|
|
116
114
|
baseURL,
|
|
117
115
|
});
|
|
118
116
|
return customProvider(model);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
// disable for now, import error in the app
|
|
118
|
+
// case "gemini":
|
|
119
|
+
// // Use Gemini CLI provider with OAuth via Proxy to handle lazy loading
|
|
120
|
+
// return new GeminiProviderProxy(model, {
|
|
121
|
+
// authType: "oauth-personal",
|
|
122
|
+
// });
|
|
124
123
|
case "zai":
|
|
125
124
|
if (!apiKey)
|
|
126
125
|
throw (0, task_o_matic_error_1.createStandardError)(task_o_matic_error_1.TaskOMaticErrorCodes.AI_CONFIGURATION_ERROR, "Z.AI Coding plan API key is required", {
|