We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4aaf94 commit 7fa7e16Copy full SHA for 7fa7e16
src/api/providers/__tests__/minimax.spec.ts
@@ -230,7 +230,7 @@ describe("MiniMaxHandler", () => {
230
expect(mockCreate).toHaveBeenCalledWith(
231
expect.objectContaining({
232
model: modelId,
233
- max_tokens: modelInfo.maxTokens,
+ max_tokens: Math.min(modelInfo.maxTokens, Math.ceil(modelInfo.contextWindow * 0.2)),
234
temperature: 1,
235
messages: expect.arrayContaining([{ role: "system", content: systemPrompt }]),
236
stream: true,
0 commit comments