fix: tune codex queue minimax runtime
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ services:
|
||||
OPENAI_API_KEY: "${OPENAI_API_KEY:-}"
|
||||
CRS_OAI_KEY: "${CRS_OAI_KEY:-}"
|
||||
MINIMAX_API_KEY: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_KEY:-}"
|
||||
MINIMAX_API_BASE: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_BASE:-https://api.minimax.io/v1}"
|
||||
MINIMAX_API_BASE: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_BASE:-https://api.minimaxi.com/v1}"
|
||||
MINIMAX_MODEL: "${UNIDESK_CODEX_QUEUE_MINIMAX_MODEL:-MiniMax-M2.7}"
|
||||
LOG_FILE: "/var/log/unidesk/${UNIDESK_LOG_PREFIX}_codex-queue.jsonl"
|
||||
volumes:
|
||||
|
||||
@@ -1160,7 +1160,7 @@ async function route(req: Request): Promise<Response> {
|
||||
}
|
||||
|
||||
prepareCodexHome();
|
||||
Bun.serve({ hostname: config.host, port: config.port, fetch: route });
|
||||
Bun.serve({ hostname: config.host, port: config.port, idleTimeout: 120, fetch: route });
|
||||
logger("info", "service_started", { port: config.port, statePath: config.statePath, workdir: config.defaultWorkdir, defaultModel: config.defaultModel, judgeConfigured: config.minimaxApiKey.length > 0 });
|
||||
for (const task of state.tasks) {
|
||||
if (task.status === "running" || task.status === "judging") {
|
||||
|
||||
Reference in New Issue
Block a user