@browser-ai/web-llm 2.1.1 → 2.1.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.js CHANGED
@@ -1146,7 +1146,8 @@ var WebLLMLanguageModel = class {
1146
1146
  responseFormat,
1147
1147
  seed,
1148
1148
  tools,
1149
- toolChoice
1149
+ toolChoice,
1150
+ providerOptions
1150
1151
  }) {
1151
1152
  const warnings = [];
1152
1153
  const functionTools = (tools ?? []).filter(isFunctionTool).map((tool) => ({
@@ -1213,6 +1214,12 @@ var WebLLMLanguageModel = class {
1213
1214
  top_p: topP,
1214
1215
  seed
1215
1216
  };
1217
+ if (providerOptions?.extra_body) {
1218
+ requestOptions.extra_body = {
1219
+ enable_thinking: providerOptions.extra_body.enable_thinking,
1220
+ enable_latency_breakdown: providerOptions.extra_body.enable_latency_breakdown
1221
+ };
1222
+ }
1216
1223
  if (responseFormat?.type === "json") {
1217
1224
  requestOptions.response_format = {
1218
1225
  type: "json_object",