Skip to content

Commit 229b90b

Browse files
author
莘权 马
committed
fixbug: Fixed the issue of Llama 3.2 returning multi-line JSON.
1 parent 0b8e9b6 commit 229b90b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

metagpt/provider/ollama_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
# @Desc : self-host open llm model with ollama which isn't openai-api-compatible
4-
# @Modified by : mashenquan. Tested with llama 3.2, https://www.ollama.com/library/llama3.2
4+
# @Modified by : mashenquan. Tested with llama 3.2, https://www.ollama.com/library/llama3.2;
5+
# nomic-embed-text, https://www.ollama.com/library/nomic-embed-text
56

67
import json
78
from enum import Enum, auto

0 commit comments

Comments
 (0)