Skip to content

Commit

Permalink
fix: Correct provider list access in LLMS.list() method
Browse files Browse the repository at this point in the history
  • Loading branch information
vprelovac committed Dec 18, 2024
1 parent 0716069 commit b4069e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llms/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def list(self, query: Optional[str] = None) -> List[Dict[str, Any]]:
"name": model,
"cost": cost,
}
for provider in [p.provider for p in self._possible_providers]
for provider in [p.provider for p in self._provider_map.values()]
for model, cost in provider.MODEL_INFO.items()
if not query
or (
Expand Down

0 comments on commit b4069e2

Please sign in to comment.