mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 19:36:24 +02:00
add ollama support
This commit is contained in:
parent
7e0a2fabc7
commit
4b0cb0084a
10 changed files with 284 additions and 36 deletions
|
|
@ -196,6 +196,8 @@ def repair_invalid_json(output: str, error: str) -> str:
|
|||
new_line = f'"{line}'
|
||||
elif '",' in line:
|
||||
new_line = line[:-2] + "',"
|
||||
else:
|
||||
new_line = line
|
||||
|
||||
arr[line_no] = new_line
|
||||
output = "\n".join(arr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue