Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -245,9 +245,10 @@ app.post('/api/chats/:id/stream', async (req, res) => {
|
|
| 245 |
system:[{ text: system_prompt || CLAUDE_SYSTEM_PROMPT }],
|
| 246 |
messages: historicalMessages,
|
| 247 |
inferenceConfig: { maxTokens: commandMaxTokens, temperature: 1 },
|
| 248 |
-
|
| 249 |
thinking: { type: "adaptive" }
|
| 250 |
} : undefined
|
|
|
|
| 251 |
});
|
| 252 |
|
| 253 |
const response = await bedrockClient.send(command, { abortSignal: abortController.signal });
|
|
|
|
| 245 |
system:[{ text: system_prompt || CLAUDE_SYSTEM_PROMPT }],
|
| 246 |
messages: historicalMessages,
|
| 247 |
inferenceConfig: { maxTokens: commandMaxTokens, temperature: 1 },
|
| 248 |
+
/* additionalModelRequestFields: model.includes("claude") ? {
|
| 249 |
thinking: { type: "adaptive" }
|
| 250 |
} : undefined
|
| 251 |
+
*/
|
| 252 |
});
|
| 253 |
|
| 254 |
const response = await bedrockClient.send(command, { abortSignal: abortController.signal });
|