Skip to main content
Version: v0.3.2

remote::llama-openai-compat

Description​

Llama OpenAI-compatible provider for using Llama models with OpenAI API format.

Configuration​

FieldTypeRequiredDefaultDescription
allowed_modelslist[str | NoneNoList of models that should be registered with the model registry. If None, all models are allowed.
refresh_models<class 'bool'>NoFalseWhether to refresh models periodically from the provider
api_keypydantic.types.SecretStr | NoneNoAuthentication credential for the provider
openai_compat_api_base<class 'str'>Nohttps://api.llama.com/compat/v1/The URL for the Llama API server

Sample Configuration​

openai_compat_api_base: https://api.llama.com/compat/v1/
api_key: ${env.LLAMA_API_KEY}