@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.
package/dist/index.cjs CHANGED
@@ -130,6 +130,12 @@ async function* streamFromOpenAI(client, req, options) {
130
130
  const param = options.tokensParam ?? (needsMaxCompletionTokens(req.model) ? "max_completion_tokens" : "max_tokens");
131
131
  body[param] = effectiveMaxTokens;
132
132
  }
133
+ if (req.providerParams) {
134
+ const bodyRecord = body;
135
+ for (const [key, value] of Object.entries(req.providerParams)) {
136
+ if (!(key in bodyRecord)) bodyRecord[key] = value;
137
+ }
138
+ }
133
139
  const t0 = process.hrtime.bigint();
134
140
  let t1;
135
141
  let t2;