Fix openai api key, config settings saving

This commit is contained in:
shamoon
2025-04-25 21:34:14 -07:00
parent 0052f21cea
commit 0690fd36c5
4 changed files with 8 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class AIClient:
elif self.settings.llm_backend == "openai":
return OpenAI(
model=self.settings.llm_model or "gpt-3.5-turbo",
api_key=self.settings.openai_api_key,
api_key=self.settings.llm_api_key,
)
else:
raise ValueError(f"Unsupported LLM backend: {self.settings.llm_backend}")