@byte_fluffy/nexra-sdk 0.1.0-alpha.34 → 0.1.0-alpha.35
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/catalog.js
CHANGED
|
@@ -50897,7 +50897,7 @@ var NexraWaitTimeoutError = class extends Error {
|
|
|
50897
50897
|
};
|
|
50898
50898
|
|
|
50899
50899
|
// src/generated/version.generated.ts
|
|
50900
|
-
var SDK_VERSION = "0.1.0-alpha.
|
|
50900
|
+
var SDK_VERSION = "0.1.0-alpha.35";
|
|
50901
50901
|
|
|
50902
50902
|
// src/transport.ts
|
|
50903
50903
|
var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";
|
package/dist/index.js
CHANGED
package/dist/language.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
jsonBody,
|
|
7
7
|
parseServerSentEvents,
|
|
8
8
|
resolveNexraLanguageReasoning
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HVCSMBOG.js";
|
|
10
10
|
import {
|
|
11
11
|
isPublicErrorCode,
|
|
12
12
|
publicErrorMessage,
|
|
@@ -177,7 +177,7 @@ function chatRequest(binding, options, stream) {
|
|
|
177
177
|
if (tool.type !== "function") throw new UnsupportedFunctionalityError({ functionality: "provider tools in Chat Completions" });
|
|
178
178
|
return { type: "function", function: { name: tool.name, description: tool.description, parameters: tool.inputSchema, ...tool.strict !== void 0 ? { strict: tool.strict } : {} } };
|
|
179
179
|
});
|
|
180
|
-
const choice = options.toolChoice;
|
|
180
|
+
const choice = tools?.length ? options.toolChoice : void 0;
|
|
181
181
|
return {
|
|
182
182
|
...extension.max_completion_tokens === void 0 ? { max_tokens: options.maxOutputTokens } : {},
|
|
183
183
|
temperature: options.temperature,
|