@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
@@ -9,7 +9,7 @@ import {
9
9
  listModelSpecs,
10
10
  projectMediaGeometry,
11
11
  resolveNexraLanguageReasoning
12
- } from "./chunk-ZPOVSD7D.js";
12
+ } from "./chunk-HVCSMBOG.js";
13
13
  import "./chunk-R4BEO26Q.js";
14
14
  export {
15
15
  CatalogClient,
@@ -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.34";
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
@@ -20,7 +20,7 @@ import {
20
20
  projectMediaGeometry,
21
21
  queryString,
22
22
  sleep
23
- } from "./chunk-ZPOVSD7D.js";
23
+ } from "./chunk-HVCSMBOG.js";
24
24
  import {
25
25
  MEDIA_KINDS,
26
26
  TASK_STATUSES,
package/dist/language.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  jsonBody,
7
7
  parseServerSentEvents,
8
8
  resolveNexraLanguageReasoning
9
- } from "./chunk-ZPOVSD7D.js";
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.34",
3
+ "version": "0.1.0-alpha.35",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,