Llm

Update

PATCH
Patch an LLM

Path parameters

llm_idstringRequired

Request

This endpoint expects an object.
provider
stringRequired
apiKey
stringRequired
options
map from strings to anyOptional

Response

This endpoint returns an object
success
boolean
data
objectOptional
Represents a LLM record
PATCH
1curl -X PATCH https://api.beta.superagent.sh/api/v1/llms/llm_id \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "provider": "provider",
6 "apiKey": "apiKey"
7}'
200Updated
1{
2 "success": true,
3 "data": {
4 "id": "id",
5 "provider": "OPENAI",
6 "apiKey": "apiKey",
7 "createdAt": "2024-01-15T09:30:00Z",
8 "updatedAt": "2024-01-15T09:30:00Z",
9 "apiUserId": "apiUserId",
10 "options": {
11 "key": "value"
12 },
13 "agents": [
14 {
15 "agentId": "agentId",
16 "llmId": "llmId",
17 "createdAt": "2024-01-15T09:30:00Z",
18 "updatedAt": "2024-01-15T09:30:00Z"
19 }
20 ],
21 "apiUser": {
22 "id": "id",
23 "createdAt": "2024-01-15T09:30:00Z",
24 "updatedAt": "2024-01-15T09:30:00Z",
25 "token": "token",
26 "email": "email",
27 "agents": [
28 {
29 "id": "id",
30 "type": "SUPERAGENT",
31 "name": "name",
32 "description": "description",
33 "isActive": true,
34 "createdAt": "2024-01-15T09:30:00Z",
35 "updatedAt": "2024-01-15T09:30:00Z",
36 "apiUserId": "apiUserId"
37 }
38 ],
39 "datasources": [
40 {
41 "id": "id",
42 "name": "name",
43 "type": "TXT",
44 "apiUserId": "apiUserId",
45 "createdAt": "2024-01-15T09:30:00Z",
46 "updatedAt": "2024-01-15T09:30:00Z",
47 "status": "IN_PROGRESS"
48 }
49 ],
50 "tools": [
51 {
52 "id": "id",
53 "name": "name",
54 "description": "description",
55 "type": "ALGOLIA",
56 "returnDirect": true,
57 "createdAt": "2024-01-15T09:30:00Z",
58 "updatedAt": "2024-01-15T09:30:00Z",
59 "apiUserId": "apiUserId"
60 }
61 ],
62 "workflows": [
63 {
64 "id": "id",
65 "name": "name",
66 "createdAt": "2024-01-15T09:30:00Z",
67 "updatedAt": "2024-01-15T09:30:00Z",
68 "apiUserId": "apiUserId"
69 }
70 ],
71 "vectorDb": [
72 {
73 "id": "id",
74 "provider": "PINECONE",
75 "createdAt": "2024-01-15T09:30:00Z",
76 "updatedAt": "2024-01-15T09:30:00Z",
77 "apiUserId": "apiUserId"
78 }
79 ],
80 "workflowConfigs": [
81 {
82 "id": "id",
83 "createdAt": "2024-01-15T09:30:00Z",
84 "updatedAt": "2024-01-15T09:30:00Z",
85 "workflowId": "workflowId"
86 }
87 ],
88 "apiKeys": [
89 {
90 "id": "id",
91 "name": "name",
92 "displayApiKey": "displayApiKey",
93 "createdAt": "2024-01-15T09:30:00Z",
94 "updatedAt": "2024-01-15T09:30:00Z",
95 "apiUserId": "apiUserId"
96 }
97 ]
98 }
99 }
100}