call-ai 0.7.1 → 0.7.2
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/api.js +0 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -32,7 +32,6 @@ function callAI(prompt, options = {}) {
|
|
|
32
32
|
const streamPromise = (async () => {
|
|
33
33
|
// Do setup and validation before returning the generator
|
|
34
34
|
const { endpoint, requestOptions, model, schemaStrategy } = prepareRequestParams(prompt, { ...options, stream: true });
|
|
35
|
-
// Make the fetch request and handle errors before creating the generator
|
|
36
35
|
if (options.debug) {
|
|
37
36
|
console.log(`[callAI:${PACKAGE_VERSION}] Making fetch request to: ${endpoint}`);
|
|
38
37
|
console.log(`[callAI:${PACKAGE_VERSION}] With model: ${model}`);
|