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 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(provider, apiKey, messages, tools, parser, thinkingSpeed) {
10399
- const model = await getModel(provider, apiKey);
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)({