We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de368d8 + d712b88 commit cf761abCopy full SHA for cf761ab
metagpt/provider/ollama_api.py
@@ -193,7 +193,7 @@ class OllamaLLM(BaseLLM):
193
"""
194
195
def __init__(self, config: LLMConfig):
196
- self.client = GeneralAPIRequestor(base_url=config.base_url)
+ self.client = GeneralAPIRequestor(base_url=config.base_url, key=config.api_key)
197
self.config = config
198
self.http_method = "post"
199
self.use_system_prompt = False
0 commit comments