Multi-LLM Orchestrator (OpenAI (ChatGPT))
The following providers are disabled or have missing credentials in AWS Secrets Manager:
Copy and paste these curl commands to programmatically interact with any AI provider. All commands use the same endpoint with different provider parameters.
curl -k -X POST "https://${window.location.hostname}/api/ai/chat" \ -H "Content-Type: application/json" \ -d '{ "message": "Your question here", "purpose": "general", "provider": "openai" }'
curl -k -X POST "https://${window.location.hostname}/api/ai/chat" \
-H "Content-Type: application/json" \
-d '{"message":"Hello, how are you?","purpose":"general","provider":"openai"}'
{
"statusCode": 200,
"data": {
"trace_id": "...",
"provider": "openai",
"content": "The AI response text",
"latency_ms": 1234.56,
"tokens": {
"input": 10,
"output": 25
}
}
}