Skip to content

Commit fd469ed

Browse files
authored
Merge pull request #267 from PySpur-Dev/fix/ollama-models
v0.1.17
2 parents 2ca3a2b + dd09831 commit fd469ed

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pyspur"
7-
version = "0.1.16"
7+
version = "0.1.17"
88
description = "PySpur is a Graph UI for building AI Agents in Python"
99
requires-python = ">=3.11"
1010
license = "Apache-2.0"

backend/pyspur/nodes/llm/_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -558,21 +558,13 @@ async def ollama_with_backoff(
558558
559559
"""
560560
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}")
567561
try:
568562
response = await client.chat(
569563
model=model.replace("ollama/", ""),
570564
messages=messages,
571565
format=format,
572566
options=(options or OllamaOptions()).to_dict(),
573567
)
574-
print("=== Ollama Response ===")
575-
print(f"Response: {response}")
576568
return response.message.content
577569
except Exception as e:
578570
logging.error(f"Error calling Ollama API: {e}")

0 commit comments

Comments
 (0)