可用性优化
通过分布式基础设施和回退提高可用性。
发起第一个请求
从目录中选择模型,发送对话请求;客户端支持服务器发送事件时,可使用流式响应。
curl https://your-gateway.example/v1/chat/completions \
-H "Authorization: Bearer $MODELGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'查看集成