fix api key bug
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -85,4 +85,8 @@ onMounted(() => {
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.game-canvas-container :deep(canvas) {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user