🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add api key to ollama client to support open webui
Maximilian Knolld712b88d2178
diff --git a/metagpt/provider/ollama_api.py b/metagpt/provider/ollama_api.pyindex 3f7d20d0a..bb458b0e8 100644--- a/metagpt/provider/ollama_api.py+++ b/metagpt/provider/ollama_api.py@@ -193,7 +193,7 @@ class OllamaLLM(BaseLLM):"""def __init__(self, config: LLMConfig):- self.client = GeneralAPIRequestor(base_url=config.base_url)+ self.client = GeneralAPIRequestor(base_url=config.base_url, key=config.api_key)self.config = configself.http_method = "post"self.use_system_prompt = False