feat: increase max_tokens 2x (1500->3000)
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user