Update proxy for modern model APIs

This commit is contained in:
Your Name
2026-04-06 03:59:37 -07:00
parent 824adfbbb2
commit 8662eadea7
48 changed files with 1294 additions and 214 deletions
+51 -7
View File
@@ -7,8 +7,8 @@ Authorization: Bearer {{oai-key-1}}
Content-Type: application/json
{
"model": "gpt-3.5-turbo",
"max_tokens": 30,
"model": "gpt-4.1-mini",
"max_completion_tokens": 30,
"stream": false,
"messages": [
{
@@ -18,6 +18,19 @@ Content-Type: application/json
]
}
###
# @name OpenAI -- Responses API
POST https://api.openai.com/v1/responses
Authorization: Bearer {{oai-key-1}}
Content-Type: application/json
{
"model": "gpt-5.2",
"reasoning": { "effort": "medium" },
"max_output_tokens": 80,
"input": "This is a test prompt."
}
###
# @name OpenAI -- Text Completions
POST https://api.openai.com/v1/completions
@@ -38,7 +51,7 @@ Authorization: Bearer {{oai-key-1}}
Content-Type: application/json
{
"model": "text-embedding-ada-002",
"model": "text-embedding-3-small",
"input": "This is a test embedding input."
}
@@ -81,8 +94,8 @@ Authorization: Bearer {{proxy-key}}
Content-Type: application/json
{
"model": "gpt-4-1106-preview",
"max_tokens": 20,
"model": "gpt-4.1",
"max_completion_tokens": 20,
"stream": true,
"temperature": 1,
"seed": 123,
@@ -94,6 +107,20 @@ Content-Type: application/json
]
}
###
# @name Proxy / OpenAI -- Native Responses API
POST {{proxy-host}}/proxy/openai/v1/responses
Authorization: Bearer {{proxy-key}}
Content-Type: application/json
{
"model": "gpt-5.2",
"reasoning": { "effort": "medium" },
"max_output_tokens": 64,
"stream": false,
"input": "Summarize the purpose of this reverse proxy in one sentence."
}
###
# @name Proxy / OpenAI -- Native Text Completions
POST {{proxy-host}}/proxy/openai/v1/turbo-instruct/chat/completions
@@ -142,7 +169,7 @@ Authorization: Bearer {{proxy-key}}
Content-Type: application/json
{
"model": "text-embedding-ada-002",
"model": "text-embedding-3-small",
"input": "This is a test embedding input."
}
@@ -185,7 +212,7 @@ Authorization: Bearer {{proxy-key}}
Content-Type: application/json
{
"model": "gpt-3.5-turbo",
"model": "gpt-5.2",
"max_tokens": 20,
"stream": false,
"temperature": 0,
@@ -197,6 +224,23 @@ Content-Type: application/json
]
}
###
# @name Proxy / Google AI -- OpenAI-Compat Image Generation
POST {{proxy-host}}/proxy/google-ai/v1/chat/completions
Authorization: Bearer {{proxy-key}}
Content-Type: application/json
{
"model": "gemini-2.5-flash-image",
"stream": false,
"messages": [
{
"role": "user",
"content": "Generate a flat vector-style illustration of a red fox reading a newspaper at a cafe table."
}
]
}
###
# @name Proxy / AWS Claude -- Native Completion
POST {{proxy-host}}/proxy/aws/claude/v1/complete