AI Chat
Get AI Providers
Changed onGet the list of available AI providers and their supported models.
SDK Usage:
const providers = await client.getAIProviders();
// { success: true, name: "vertex", models: [...], current: "vertex" }
get/api/ai/providers
Request
- Base URLhttps://api.privacypal.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
AI providers list
Example response
{
"name": "vertex",
"models": [
"gemini-2.0-flash-exp",
"gemini-1.5-pro",
"gemini-1.5-flash"
],
"current": "vertex"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info