claude

Version

(Experimental) Talks to the Anthropic Claude Messages API under /v1/messages. The api key travels in the x-api-key header, and the system prompt in the top level system field. See tutorials/llm-gateway/claude/10-Basic-LLM-Gateway.yaml.

Example Configuration

api:
port: 2000
flow:
- llmGateway:
claude: {}
policies:
maxOutputTokens: 200
target:
url: https://api.anthropic.com
api:
   port: 2000
   flow:
     - llmGateway:
         claude: {}
         policies:
           maxOutputTokens: 200
   target:
     url: https://api.anthropic.com

Syntax

claude: {}
claude: {}

Can be used in