| Server IP : 3.147.158.171 / Your IP : 216.73.216.216 Web Server : Apache/2.4.67 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-2-178.us-east-2.compute.internal 6.1.172-216.329.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 20 06:31:34 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.21 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /tsai/www/html/api.johnturman.net/examples/ |
Upload File : |
{
"gpt5_config": {
"description": "GPT-5 Configuration",
"features": {
"useLangChain": true,
"useStructuredOutput": false,
"streamedResponses": true
},
"model": {
"provider": "OpenAI",
"name": "gpt-5",
"temperature": 1,
"maxTokens": 8192,
"stream": false
},
"instructions": "You are GPT-5, the latest and most advanced AI model from OpenAI."
},
"o1_reasoning_config": {
"description": "OpenAI o1 Reasoning Model Configuration",
"features": {
"useLangChain": true,
"useStructuredOutput": false,
"streamedResponses": false
},
"model": {
"provider": "OpenAI",
"name": "o1-preview",
"temperature": 1,
"maxTokens": 32768,
"stream": false
},
"instructions": "You are o1, a reasoning model. Think step by step and show your reasoning process."
},
"structured_output_config": {
"description": "GPT-4o with Structured Output (Responses API)",
"features": {
"useLangChain": true,
"useStructuredOutput": true,
"streamedResponses": true
},
"model": {
"provider": "OpenAI",
"name": "gpt-4o",
"temperature": 0.7,
"maxTokens": 4096,
"stream": true
},
"responseSchema": {
"name": "TaskResponse",
"schema": {
"type": "object",
"properties": {
"task": {"type": "string"},
"status": {"type": "string", "enum": ["completed", "in_progress", "failed"]},
"result": {"type": "string"},
"confidence": {"type": "number", "minimum": 0, "maximum": 1}
},
"required": ["task", "status", "result", "confidence"],
"additionalProperties": false
},
"strict": true
},
"instructions": "Respond with structured data according to the provided schema."
},
"claude_config": {
"description": "Claude 3.5 Sonnet Configuration",
"features": {
"useLangChain": true,
"useStructuredOutput": false,
"streamedResponses": true
},
"model": {
"provider": "Claude",
"name": "claude-3-5-sonnet-20241022",
"temperature": 0.7,
"maxTokens": 8192,
"stream": true
},
"instructions": "You are Claude, an AI assistant created by Anthropic."
},
"mixed_provider_demo": {
"description": "Example showing how to switch between providers",
"options": [
{
"name": "GPT-5 for creativity",
"model": {"provider": "OpenAI", "name": "gpt-5"}
},
{
"name": "o1 for reasoning",
"model": {"provider": "OpenAI", "name": "o1-preview"}
},
{
"name": "Claude for conversation",
"model": {"provider": "Claude", "name": "claude-3-5-sonnet-20241022"}
},
{
"name": "GPT-4o for structured output",
"model": {"provider": "OpenAI", "name": "gpt-4o"},
"features": {"useStructuredOutput": true}
}
]
}
}