mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
Check LLM API connection before doing anything else. (#949)
This commit is contained in:
@@ -299,6 +299,13 @@ class Config(_StrictModel):
|
||||
provider_config = self.llm[agent_config.provider]
|
||||
return LLMConfig.from_provider_and_agent_configs(provider_config, agent_config)
|
||||
|
||||
def all_llms(self) -> list[LLMConfig]:
|
||||
"""
|
||||
Get configuration for all defined LLMs.
|
||||
"""
|
||||
|
||||
return [self.llm_for_agent(agent) for agent in self.agent]
|
||||
|
||||
|
||||
class ConfigLoader:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user