Skip to main content

inline::builtin

Description​

Implements the Anthropic Messages API by delegating to the inference API's anthropic_messages() method. OpenAIMixin provides default translation via openai_chat_completion. Providers with native /v1/messages support (e.g., Anthropic, Meta AI, Ollama, vLLM, Fireworks, DeepSeek) use AnthropicMixin to forward directly to the provider's own /v1/messages endpoint. Message batch operations are implemented locally.

Configuration​

FieldTypeRequiredDefaultDescription
sqlstoreSqlStoreReferenceNotable_name='message_batches' backend='sql_default'Configuration for the SQL store backend used to persist message batch metadata.
sqlstore.table_namestrNoName of the table to use for the SqlStore
sqlstore.backendstrNoName of backend from storage.backends
kvstoreKVStoreReferenceNoConfiguration for the key-value store backend used to persist message batch results.
kvstore.namespacestrNoKey prefix for KVStore backends
kvstore.backendstrNoName of backend from storage.backends
max_concurrent_batchesintNo1Maximum number of concurrent message batches to process simultaneously.
max_concurrent_requests_per_batchintNo10Maximum number of concurrent requests to process per batch.

Sample Configuration​

sqlstore:
table_name: message_batches
backend: sql_default
kvstore:
namespace: message_batches
backend: kv_default