Meta Llama API Proxy

 1---
 2# Passthrough access to Meta's Llama API, with the platform's API key. Use the Llama API SDK,
 3# or the OpenAI SDK with this Proxy's URL plus compat/v1/ as its base_url.
 4apiVersion: smarter.sh/v1
 5kind: Proxy
 6metadata:
 7  name: metaai
 8  description: Passthrough access to Meta's Llama API chat completions, moderations and models, native and OpenAI-compatible.
 9  version: 1.0.0
10  tags:
11    - meta
12    - llama
13    - builtin
14  annotations:
15    - smarter.sh/proxy/builtin: "true"
16    - smarter.sh/proxy/documentation: https://llama.developer.meta.com/docs/api
17spec:
18  provider: metaai
19  apiKey: llama_api_key
20  baseUrl: https://api.llama.com/
21  auth:
22    header: Authorization
23    scheme: Bearer
24  allowedPaths:
25    - v1/chat/completions
26    - v1/moderations
27    - v1/models
28    - v1/models/*
29    - compat/v1/chat/completions
30    - compat/v1/models
31  timeout: 120
32  isActive: true