[Fix] Error Handling: Update authentication check to use OpenRouter API for key validation.

This commit is contained in:
misyaguziya
2025-12-29 19:15:08 +09:00
parent bf1c0236b5
commit 4031a5556d
2 changed files with 12 additions and 8 deletions

View File

@@ -189,7 +189,7 @@ class OpenAIClient:
return content.strip()
if __name__ == "__main__":
AUTH_KEY = "OPENAI_API_KEY"
AUTH_KEY = input("OPENAI_API_KEY: ")
client = OpenAIClient()
client.setAuthKey(AUTH_KEY)
models = client.getModelList()