Update(boards): xpython板卡执行 build:prod

This commit is contained in:
王立帮
2025-03-10 13:03:59 +08:00
parent 6c05a40251
commit 8a5d7da0e7
29 changed files with 23 additions and 23 deletions

View File

@@ -596,7 +596,7 @@
"json"
],
"__file__": true,
"__size__": 3329,
"__size__": 3362,
"__name__": "ollama.py"
},
"onenet": {

View File

@@ -4,7 +4,7 @@ import json
class Ollama():
def __init__(self, url="", model=""):
def __init__(self, url="", model="", max_history_num=0):
self._heads = {
"Accept": "text/event-stream",
# "Cache-Control": "no-cache",
@@ -13,7 +13,7 @@ class Ollama():
}
self._url = url
self._max_retries = 1
self._max_history_num = 0
self._max_history_num = max_history_num
self._timeout = 10000
self._messages = []
self._data = {