mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-09-03 06:35:22 +08:00
Merge pull request #1600 from MorpheusI0/feature/support_for_open_webui
Add api key to ollama client to support open webui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user