fix api key bug

This commit is contained in:
bridge
2025-12-29 22:56:49 +08:00
parent 32c6bf1d46
commit 853e74630e
3 changed files with 12 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class LLMConfig:
)
# API Key 优先从环境变量读取
api_key = os.getenv("QWEN_API_KEY") or CONFIG.llm.key
api_key = CONFIG.llm.key
return cls(
model_name=model_name,

View File

@@ -184,6 +184,13 @@ try {
}
}
# 清理 _internal 中的 local_config.yml (防止敏感信息泄露)
$InternalLocalConfigPath = Join-Path $ExeDir "_internal\static\local_config.yml"
if (Test-Path $InternalLocalConfigPath) {
Remove-Item -Path $InternalLocalConfigPath -Force
Write-Host "✓ Removed sensitive local_config.yml from _internal" -ForegroundColor Green
}
# Copy Web Dist to exe directory (Manual copy instead of PyInstaller bundle)
if (Test-Path $WebDistDir) {
$DestWeb = Join-Path $ExeDir "web_static"

View File

@@ -85,4 +85,8 @@ onMounted(() => {
overflow: hidden;
background: #000;
}
.game-canvas-container :deep(canvas) {
display: block;
}
</style>