feat: increase max_tokens 2x (1500->3000)

This commit is contained in:
Alexej Wolff
2026-05-07 01:19:41 +02:00
parent 9bf40a0aa6
commit f6fffc1561
+2 -2
View File
@@ -37,7 +37,7 @@ interface DeepSeekResponse {
export async function sendMessage( export async function sendMessage(
messages: DeepSeekMessage[], messages: DeepSeekMessage[],
temperature: number = 0.8, temperature: number = 0.8,
max_tokens: number = 1000, max_tokens: number = 2000,
): Promise<string> { ): Promise<string> {
const response = await fetch(`${API_BASE}/api/deepseek/chat`, { const response = await fetch(`${API_BASE}/api/deepseek/chat`, {
method: "POST", method: "POST",
@@ -88,7 +88,7 @@ export async function sendMessageStream(
body: JSON.stringify({ body: JSON.stringify({
messages, messages,
temperature, temperature,
max_tokens: 1500, max_tokens: 3000,
}), }),
signal, signal,
}); });