aieo 0.1.16 → 0.1.18
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/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10360,6 +10360,9 @@ async function getModel(provider, apiKey, cwd) {
|
|
|
10360
10360
|
cwd
|
|
10361
10361
|
}
|
|
10362
10362
|
});
|
|
10363
|
+
if (cwd) {
|
|
10364
|
+
console.log("creating claude code model at", cwd);
|
|
10365
|
+
}
|
|
10363
10366
|
return customProvider(SOTA[provider]);
|
|
10364
10367
|
default:
|
|
10365
10368
|
throw new Error(`Unsupported provider: ${provider}`);
|
|
@@ -10395,8 +10398,9 @@ function getProviderOptions(provider, thinkingSpeed) {
|
|
|
10395
10398
|
|
|
10396
10399
|
// src/stream.ts
|
|
10397
10400
|
var import_ai = require("ai");
|
|
10398
|
-
async function callModel(
|
|
10399
|
-
const
|
|
10401
|
+
async function callModel(opts) {
|
|
10402
|
+
const { provider, apiKey, messages, tools, parser, thinkingSpeed, cwd } = opts;
|
|
10403
|
+
const model = await getModel(provider, apiKey, cwd);
|
|
10400
10404
|
const providerOptions = getProviderOptions(provider, thinkingSpeed);
|
|
10401
10405
|
console.log(`Calling ${provider} with options:`, providerOptions);
|
|
10402
10406
|
const result = (0, import_ai.streamText)({
|