@jambonz/llm 0.5.6 → 0.5.7

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.
@@ -117,6 +117,12 @@ async function* streamFromOpenAI(client, req, options) {
117
117
  const param = options.tokensParam ?? (needsMaxCompletionTokens(req.model) ? "max_completion_tokens" : "max_tokens");
118
118
  body[param] = effectiveMaxTokens;
119
119
  }
120
+ if (req.providerParams) {
121
+ const bodyRecord = body;
122
+ for (const [key, value] of Object.entries(req.providerParams)) {
123
+ if (!(key in bodyRecord)) bodyRecord[key] = value;
124
+ }
125
+ }
120
126
  const t0 = process.hrtime.bigint();
121
127
  let t1;
122
128
  let t2;