Skip to content

Commit d712b88

Browse files
committed
add api key to ollama client to support open webui
1 parent 2b160f2 commit d712b88

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)