aieo 0.1.16 → 0.1.17
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 +3 -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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10395,8 +10395,9 @@ function getProviderOptions(provider, thinkingSpeed) {
|
|
|
10395
10395
|
|
|
10396
10396
|
// src/stream.ts
|
|
10397
10397
|
var import_ai = require("ai");
|
|
10398
|
-
async function callModel(
|
|
10399
|
-
const
|
|
10398
|
+
async function callModel(opts) {
|
|
10399
|
+
const { provider, apiKey, messages, tools, parser, thinkingSpeed, cwd } = opts;
|
|
10400
|
+
const model = await getModel(provider, apiKey, cwd);
|
|
10400
10401
|
const providerOptions = getProviderOptions(provider, thinkingSpeed);
|
|
10401
10402
|
console.log(`Calling ${provider} with options:`, providerOptions);
|
|
10402
10403
|
const result = (0, import_ai.streamText)({
|