get__ai_llm_available
⚠️ TEST ENVIRONMENT ONLY
Last updated
Was this helpful?
Was this helpful?
public getAvailableAiLlms = async (): Promise<GetAiLlmsResponse> => {
return this.makeRequest<GetAiLlmsResponse>('ai/llm/available', 'GET', null);
};# You can also use wget
curl -X GET https://backend.flashback.tech/ai/llm/available \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/ai/llm/available HTTP/1.1
Host: backend.flashback.tech
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/ai/llm/available',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json',
'Authorization' => 'Bearer {access-token}'
}
result = RestClient.get 'https://backend.flashback.tech/ai/llm/available',
params: {
}, headers: headers
p JSON.parse(result)import requests
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {access-token}'
}
r = requests.get('https://backend.flashback.tech/ai/llm/available', headers = headers)
print(r.json())<?php
require 'vendor/autoload.php';
$headers = array(
'Accept' => 'application/json',
'Authorization' => 'Bearer {access-token}',
);
$client = new \GuzzleHttp\Client();
try {
$response = $client->request('GET','https://backend.flashback.tech/ai/llm/available', array(
'headers' => $headers,
)
);
print_r($response->getBody()->getContents());
}
catch (\GuzzleHttp\Exception\BadResponseException $e) {
// handle exception or api errors.
print_r($e->getMessage());
}
// ...URL obj = new URL("https://backend.flashback.tech/ai/llm/available");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
"Authorization": []string{"Bearer {access-token}"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "https://backend.flashback.tech/ai/llm/available", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}{
"success": true,
"aiLlms": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"orgId": "org-123",
"workspaceId": "workspace-123",
"userId": "user-456",
"name": "Production OpenAI",
"aiType": "OPENAI",
"endpoint": "https://api.openai.com/v1",
"key": null,
"createdAt": "2024-01-15T10:30:00.000Z",
"repos": []
},
{
"id": "660f9511-f3ac-52e5-b827-557766551111",
"orgId": "org-123",
"workspaceId": "workspace-123",
"userId": "user-456",
"name": "Anthropic Claude",
"aiType": "ANTHROPIC",
"endpoint": "https://api.anthropic.com/v1",
"key": null,
"createdAt": "2024-01-14T08:20:00.000Z",
"repos": [
{
"id": "repo-789",
"name": "ai-repo",
"createdAt": "2024-01-16T08:00:00.000Z"
}
]
}
]
}