Skip to content

Commit 43fe8a3

Browse files
committed
misc: small fix or general refactoring i did not bother commenting
1 parent 2a0a003 commit 43fe8a3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

nerve/generation/litellm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def __init__(
4444
self.is_ollama = "ollama" in self.generator_id
4545
self.reduced_window_size = 25
4646

47+
litellm.drop_params = True
48+
4749
if not self.is_ollama:
4850
if self.tools and not litellm.supports_function_calling(model=self.generator_id): # type: ignore
4951
logger.warning(

nerve/runtime/logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def init(
2424
log_path: The path to the log file.
2525
level: The log level to use.
2626
litellm_debug: Whether to enable litellm debug logging.
27-
litellm_tracing: The callback to set for litellm tracing.
27+
litellm_tracing: The callback to set for litellm tracing.
2828
"""
2929

3030
if level != "DEBUG":
@@ -43,7 +43,7 @@ def init(
4343
litellm.suppress_debug_info = True
4444

4545
if litellm_tracing:
46-
litellm.callbacks = [litellm_tracing]
46+
litellm.callbacks = [litellm_tracing] # type: ignore
4747

4848
if log_path:
4949
logger.add(log_path, format=format, level=level)

nerve/server/mcp_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async def test_mcp_create_server_for_agent_adds_agent_as_tool(self, mock_runner:
3131
debug=False,
3232
log_path=None,
3333
litellm_debug=False,
34+
litellm_tracing=None,
3435
start_state={},
3536
trace=None,
3637
task=None,
@@ -95,6 +96,7 @@ async def test_create_mcp_server_for_agent_uses_task_as_description_when_descrip
9596
debug=False,
9697
log_path=None,
9798
litellm_debug=False,
99+
litellm_tracing=None,
98100
start_state={},
99101
trace=None,
100102
task=None,

0 commit comments

Comments
 (0)