llama-stack/llama_stack/providers/remote/inference
ehhuang c9ab72fa82
Support sys_prompt behavior in inference (#937)
# What does this PR do?

The current default system prompt for llama3.2 tends to overindex on
tool calling and doesn't work well when the prompt does not require tool
calling.

This PR adds an option to override the default system prompt, and
organizes tool-related configs into a new config object.

- [ ] Addresses issue (#issue)


## Test Plan

python -m unittest
llama_stack.providers.tests.inference.test_prompt_adapter


## Sources

Please link relevant resources if necessary.


## Before submitting

- [ ] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [ ] Ran pre-commit to handle lint / formatting issues.
- [ ] Read the [contributor
guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
      Pull Request section?
- [ ] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/meta-llama/llama-stack/pull/937).
* #938
* __->__ #937
2025-02-03 23:35:16 -08:00
..
bedrock Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
cerebras Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
databricks Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
fireworks Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
groq Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
nvidia Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
ollama Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
runpod Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
sambanova Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
sample [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
tgi Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
together Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
vllm Support sys_prompt behavior in inference (#937) 2025-02-03 23:35:16 -08:00
__init__.py impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00