Skip to content

Commit cf761ab

Browse files
authored
Merge pull request #1600 from MorpheusI0/feature/support_for_open_webui
Add api key to ollama client to support open webui
2 parents de368d8 + d712b88 commit cf761ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metagpt/provider/ollama_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class OllamaLLM(BaseLLM):
193193
"""
194194

195195
def __init__(self, config: LLMConfig):
196-
self.client = GeneralAPIRequestor(base_url=config.base_url)
196+
self.client = GeneralAPIRequestor(base_url=config.base_url, key=config.api_key)
197197
self.config = config
198198
self.http_method = "post"
199199
self.use_system_prompt = False

0 commit comments

Comments
 (0)