llama-stack/llama_stack
Dinesh Yeduguru 8af6951106
remove conflicting default for tool prompt format in chat completion (#742)
# What does this PR do?
We are setting a default value of json for tool prompt format, which
conflicts with llama 3.2/3.3 models since they use python list. This PR
changes the defaults to None and in the code, we infer default based on
the model.

Addresses: #695 

Tests:
❯ LLAMA_STACK_BASE_URL=http://localhost:5000 pytest -v
tests/client-sdk/inference/test_inference.py -k
"test_text_chat_completion"

 pytest llama_stack/providers/tests/inference/test_prompt_adapter.py
2025-01-10 10:41:53 -08:00
..
apis remove conflicting default for tool prompt format in chat completion (#742) 2025-01-10 10:41:53 -08:00
cli Expose LLAMASTACK_PORT in cli.stack.run (#722) 2025-01-10 09:13:49 -08:00
distribution remove conflicting default for tool prompt format in chat completion (#742) 2025-01-10 10:41:53 -08:00
providers remove conflicting default for tool prompt format in chat completion (#742) 2025-01-10 10:41:53 -08:00
scripts Fix to conda env build script 2024-12-17 12:19:34 -08:00
templates agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00