File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
5
5
[project ]
6
6
name = " pyspur"
7
- version = " 0.1.16 "
7
+ version = " 0.1.17 "
8
8
description = " PySpur is a Graph UI for building AI Agents in Python"
9
9
requires-python = " >=3.11"
10
10
license = " Apache-2.0"
Original file line number Diff line number Diff line change @@ -558,21 +558,13 @@ async def ollama_with_backoff(
558
558
559
559
"""
560
560
client = AsyncClient (host = api_base )
561
- print ("=== Ollama Configuration ===" )
562
- print (f"Model: '{ model } ' '{ model .replace ('ollama/' , '' )} '" )
563
- print (f"API Base: { api_base } " )
564
- print (f"Messages: { messages } " )
565
- print (f"Format: { format } " )
566
- print (f"Options: { options } " )
567
561
try :
568
562
response = await client .chat (
569
563
model = model .replace ("ollama/" , "" ),
570
564
messages = messages ,
571
565
format = format ,
572
566
options = (options or OllamaOptions ()).to_dict (),
573
567
)
574
- print ("=== Ollama Response ===" )
575
- print (f"Response: { response } " )
576
568
return response .message .content
577
569
except Exception as e :
578
570
logging .error (f"Error calling Ollama API: { e } " )
You can’t perform that action at this time.
0 commit comments