v47

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2024-10-01163166522.3 KB
Proxy

Proxy chat/completions

Proxy a chat/completions request to the specified model, converting its format as needed. Will cache if temperature=0 or seed is set.

post/v1/proxy/chat/completions

Request body

{"stackTrail":"paths:/v1/proxy/chat/completions:post:requestBody:content:application/json:schema","oasType":"schema","type":"unknown","nullable":true}

Response

Proxy response (supports both streaming and non-streaming formats)

{"stackTrail":"paths:/v1/proxy/chat/completions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown","nullable":true}