Skip to content

Commit 03bc59f

Browse files
Merge pull request #560 from MervinPraison/develop
Develop
2 parents e37040b + 3c7a817 commit 03bc59f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/praisonai/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ call = [
8989
"rich",
9090
"openai>=1.54.0",
9191
]
92-
train = ["unsloth[colab-new]>=2024.11.7"]
92+
train = []
9393
crewai = ["crewai>=0.32.0", "praisonai-tools>=0.0.15"]
9494
autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.15", "crewai"]
9595

@@ -147,7 +147,7 @@ sqlalchemy = {version = ">=2.0.36", optional = true}
147147
playwright = {version = ">=1.47.0", optional = true}
148148
openai = {version = ">=1.54.0", optional = true}
149149
pydantic = {version = "<=2.10.1", optional = true}
150-
unsloth = {version = ">=2024.11.7", extras = ["colab-new"], optional = true}
150+
# unsloth = {version = ">=2024.11.7", extras = ["colab-new"], optional = true}
151151

152152
[tool.poetry.group.docs.dependencies]
153153
mkdocs = "*"
@@ -251,7 +251,7 @@ code = [
251251
"playwright",
252252
"pydantic"
253253
]
254-
train = ["unsloth[colab-new]>=2024.11.7"]
254+
train = []
255255
realtime = [
256256
"chainlit",
257257
"litellm",

src/praisonai/tests/unit/test_ollama_fix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77

88
# Add the source directory to Python path
9-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', 'src', 'praisonai-agents'))
9+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..', 'praisonai-agents'))
1010

1111
from praisonaiagents.llm.llm import LLM
1212
from praisonaiagents.agent.agent import Agent
@@ -69,7 +69,7 @@ def test_tool_call_parsing():
6969
}
7070
}
7171
name, args, id = llm._parse_tool_call_arguments(tool_call_bad, is_ollama=False)
72-
assert name == "hello_world", f"Expected 'hello_world', got '{name}'"
72+
assert name == "unknown_function", f"Expected 'unknown_function' for malformed JSON, got '{name}'"
7373
assert args == {}, f"Expected empty dict, got {args}"
7474
print("✓ Error handling works")
7575

0 commit comments

Comments
 (0)