mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-12 07:43:11 +00:00
LLM_TOOLS_DEBUG env var, closes #1045
This commit is contained in:
parent
a888efa271
commit
f320de1b0c
2 changed files with 2 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ def multiply(x: int, y: int) -> int:
|
|||
return x * y
|
||||
' 'what is 34234 * 213345'
|
||||
```
|
||||
Add `--td/--tools-debug` to see full details of the tools that are being executed:
|
||||
Add `--td/--tools-debug` to see full details of the tools that are being executed. You can also set the `LLM_TOOLS_DEBUG` environment variable to `1` to enable this for all prompts.
|
||||
```bash
|
||||
llm --functions '
|
||||
def multiply(x: int, y: int) -> int:
|
||||
|
|
|
|||
|
|
@ -354,6 +354,7 @@ def cli():
|
|||
"--tools-debug",
|
||||
is_flag=True,
|
||||
help="Show full details of tool executions",
|
||||
envvar="LLM_TOOLS_DEBUG",
|
||||
)
|
||||
@click.option(
|
||||
"tools_approve",
|
||||
|
|
|
|||
Loading…
Reference in a new issue