Skip to content

Commit caa5d12

Browse files
committed
llm function calling v0
1 parent 5bd53d5 commit caa5d12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inferencesh/models/llm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ def __call__(self, piece: str, buffer: str) -> tuple[str, LLMOutput, dict]:
366366
def stream_generate(
367367
model: Any,
368368
messages: List[Dict[str, Any]],
369-
tools: List[Dict[str, Any]],
370-
tool_choice: Dict[str, Any],
371-
transformer: ResponseTransformer,
369+
transformer: ResponseTransformer = ResponseTransformer(),
370+
tools: List[Dict[str, Any]] = [],
371+
tool_choice: Dict[str, Any] = {},
372372
temperature: float = 0.7,
373373
top_p: float = 0.95,
374374
max_tokens: int = 4096,

0 commit comments

Comments
 (0)