Proxy
Proxy PATCH request to provider
Changed onProxy PATCH request to provider The request body depends on the specific provider and endpoint being called. If you decide to use this approach, please follow the provider-specific documentations.
patch/proxy/{provider}/{path}
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/proxy/{provider}/{path}
- AuthHTTP bearer
Request body
Response
ProviderResponse depends on the specific provider and endpoint being called If you decide to use this approach, please follow the provider-specific documentations.
Provider Specific Response required
Provider-specific response format. Examples:
OpenAI GET /v1/models?provider=openai response:
{
"provider": "openai",
"object": "list",
"data": [
{
"id": "gpt-4",
"object": "model",
"created": 1687882410,
"owned_by": "openai",
"served_by": "openai"
}
]
}
Anthropic GET /v1/models?provider=anthropic response:
{
"provider": "anthropic",
"object": "list",
"data": [
{
"id": "gpt-4",
"object": "model",
"created": 1687882410,
"owned_by": "openai",
"served_by": "openai"
}
]
}
Changes
- breaking
the
request property format changed fromfloat64tofloat
- breaking
- info
api tag
Proxyadded
- info