@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 +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +6 -0
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.d.cts +1 -1
- package/dist/test-kit/index.d.ts +1 -1
- package/dist/test-kit/index.js +6 -0
- package/dist/test-kit/index.js.map +1 -1
- package/dist/{types-BEgQaQIb.d.cts → types-rZZBXYhB.d.cts} +10 -0
- package/dist/{types-BEgQaQIb.d.ts → types-rZZBXYhB.d.ts} +10 -0
- package/package.json +1 -1
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;
|