added the state_storage_v1_responses flag, and use that to store state appropriately

This commit is contained in:
Salman Paracha 2025-12-16 11:18:19 -08:00
parent 142aaabc10
commit 1212b526b8
8 changed files with 134 additions and 10 deletions

View file

@ -0,0 +1,32 @@
version: v0.1
listeners:
egress_traffic:
address: 0.0.0.0
port: 12000
message_format: openai
timeout: 30s
llm_providers:
# OpenAI Models
- model: openai/gpt-5-mini-2025-08-07
access_key: $OPENAI_API_KEY
default: true
# Anthropic Models
- model: anthropic/claude-sonnet-4-20250514
access_key: $ANTHROPIC_API_KEY
# State storage configuration for v1/responses API
# Manages conversation state for multi-turn conversations
state_storage:
# Type: memory | postgres
type: postgres
# Connection string for postgres type
# Environment variables are supported using $VAR_NAME or ${VAR_NAME} syntax
# Replace [USER] and [HOST] with your actual database credentials
# Variables like $DB_PASSWORD MUST be set before running config validation/rendering
# Example: Replace [USER] with 'myuser' and [HOST] with 'db.example.com:5432'
connection_string: "postgresql://[USER]:$DB_PASSWORD@[HOST]:5432/postgres"