@probeo/anymodel 0.5.1 → 0.5.3

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
@@ -2063,7 +2063,7 @@ var BatchManager = class {
2063
2063
  const id = generateId("batch");
2064
2064
  const now = (/* @__PURE__ */ new Date()).toISOString();
2065
2065
  const providerName = request.model.split("/")[0] || "unknown";
2066
- const native = this.getNativeBatchAdapter(request.model);
2066
+ const native = request.batch_mode !== "concurrent" ? this.getNativeBatchAdapter(request.model) : null;
2067
2067
  const batchMode = native ? "native" : "concurrent";
2068
2068
  const batch = {
2069
2069
  id,
@@ -2286,7 +2286,8 @@ var BatchManager = class {
2286
2286
  stop: item.stop ?? options?.stop,
2287
2287
  response_format: item.response_format ?? options?.response_format,
2288
2288
  tools: item.tools ?? options?.tools,
2289
- tool_choice: item.tool_choice ?? options?.tool_choice
2289
+ tool_choice: item.tool_choice ?? options?.tool_choice,
2290
+ service_tier: item.service_tier ?? options?.service_tier
2290
2291
  };
2291
2292
  let result;
2292
2293
  try {