llama-stack/distributions
Ashwin Bharambe 63e6acd0c3
feat: add (openai, anthropic, gemini) providers via litellm (#1267)
# What does this PR do?

This PR introduces more non-llama model support to llama stack.
Providers introduced: openai, anthropic and gemini. All of these
providers use essentially the same piece of code -- the implementation
works via the `litellm` library.

We will expose only specific models for providers we enable making sure
they all work well and pass tests. This setup (instead of automatically
enabling _all_ providers and models allowed by LiteLLM) ensures we can
also perform any needed prompt tuning on a per-model basis as needed
(just like we do it for llama models.)

## Test Plan

```bash
#!/bin/bash

args=("$@")
for model in openai/gpt-4o anthropic/claude-3-5-sonnet-latest gemini/gemini-1.5-flash; do
    LLAMA_STACK_CONFIG=dev pytest -s -v tests/client-sdk/inference/test_text_inference.py \
        --embedding-model=all-MiniLM-L6-v2 \
        --vision-inference-model="" \
        --inference-model=$model "${args[@]}"
done
```
2025-02-25 22:07:33 -08:00
..
bedrock Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
cerebras Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
dell-tgi More generic image type for OCI-compliant container technologies (#802) 2025-01-17 16:37:42 -08:00
fireworks [CICD] add simple test step for docker build workflow, fix prefix bug (#821) 2025-01-18 15:16:05 -08:00
meta-reference-gpu Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
meta-reference-quantized-gpu More generic image type for OCI-compliant container technologies (#802) 2025-01-17 16:37:42 -08:00
ollama Auto-generate distro yamls + docs (#468) 2024-11-18 14:57:06 -08:00
remote-nvidia Update default port from 5000 -> 8321 2025-01-16 15:26:48 -08:00
remote-vllm rename LLAMASTACK_PORT to LLAMA_STACK_PORT for consistency with other env vars (#744) 2025-01-10 11:09:49 -08:00
runpod Add Runpod Provider + Distribution (#362) 2025-01-23 12:19:02 -08:00
sambanova Sambanova - LlamaGuard (#886) 2025-01-27 15:46:30 -08:00
tgi Auto-generate distro yamls + docs (#468) 2024-11-18 14:57:06 -08:00
together kill old readme 2025-02-02 06:49:01 -08:00
vllm-gpu More generic image type for OCI-compliant container technologies (#802) 2025-01-17 16:37:42 -08:00
dependencies.json feat: add (openai, anthropic, gemini) providers via litellm (#1267) 2025-02-25 22:07:33 -08:00