mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
format
This commit is contained in:
parent
322974a917
commit
7d3d15a324
1 changed files with 3 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ class OllamaMessageBase:
|
|||
if tpe == "text":
|
||||
return msg["text"], None
|
||||
elif tpe == "image_url":
|
||||
return None, msg["image_url"]["url"][self._image_b64_rms:]
|
||||
return None, msg["image_url"]["url"][self._image_b64_rms :]
|
||||
else:
|
||||
raise ValueError
|
||||
else:
|
||||
|
|
@ -211,7 +211,8 @@ class OllamaLLM(BaseLLM):
|
|||
else:
|
||||
raise ValueError
|
||||
|
||||
def get_choice_text(self, rsp): return self.ollama_message.get_choice(rsp)
|
||||
def get_choice_text(self, rsp):
|
||||
return self.ollama_message.get_choice(rsp)
|
||||
|
||||
async def acompletion(self, messages: list[dict], timeout=USE_CONFIG_TIMEOUT) -> dict:
|
||||
return await self._achat_completion(messages, timeout=self.get_timeout(timeout))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue