change rvs server
This commit is contained in:
@@ -540,7 +540,7 @@ async function testProxy(prompt) {
|
|||||||
|
|
||||||
const modelsRes = await fetch(healthUrl, {
|
const modelsRes = await fetch(healthUrl, {
|
||||||
headers: { "Authorization": "Bearer not-needed" },
|
headers: { "Authorization": "Bearer not-needed" },
|
||||||
signal: AbortSignal.timeout(10000),
|
signal: AbortSignal.timeout(30000),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!modelsRes.ok) {
|
if (!modelsRes.ok) {
|
||||||
@@ -567,7 +567,7 @@ async function testProxy(prompt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Schritt 2: Chat Completion testen (kurzer Prompt)
|
// Schritt 2: Chat Completion testen (kurzer Prompt)
|
||||||
const testPrompt = prompt || "Antworte mit genau einem Wort: Ping";
|
const testPrompt = prompt || "Antworte in einem Satz: Wer bist du und funktionierst du?";
|
||||||
log("info", "proxy", `Sende Test-Prompt: "${testPrompt}"`);
|
log("info", "proxy", `Sende Test-Prompt: "${testPrompt}"`);
|
||||||
|
|
||||||
const chatRes = await fetch(`${PROXY_URL}/v1/chat/completions`, {
|
const chatRes = await fetch(`${PROXY_URL}/v1/chat/completions`, {
|
||||||
@@ -581,7 +581,7 @@ async function testProxy(prompt) {
|
|||||||
messages: [{ role: "user", content: testPrompt }],
|
messages: [{ role: "user", content: testPrompt }],
|
||||||
max_tokens: 200,
|
max_tokens: 200,
|
||||||
}),
|
}),
|
||||||
signal: AbortSignal.timeout(30000),
|
signal: AbortSignal.timeout(120000), // 2min — Cold Start braucht Zeit
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!chatRes.ok) {
|
if (!chatRes.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user