diff --git a/metagpt/provider/ollama_api.py b/metagpt/provider/ollama_api.py index 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 = config self.http_method = "post" self.use_system_prompt = False