Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhu committed Oct 1, 2024
1 parent 1291d92 commit 00d2a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/oai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def _register_default_client(self, config: Dict[str, Any], openai_config: Dict[s
self._clients.append(client)
elif api_type is not None and api_type.startswith("ollama"):
if ollama_import_exception:
raise ImportError("Please install `ollama` to use the Ollama API.")
raise ImportError("Please install with `[ollama]` option to use the Ollama API.")
client = OllamaClient(**openai_config)
self._clients.append(client)
elif api_type is not None and api_type.startswith("bedrock"):
Expand Down

0 comments on commit 00d2a58

Please sign in to comment.