Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan committed Aug 30, 2024
1 parent b6f2358 commit 47b9b88
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 1 deletion.
53 changes: 53 additions & 0 deletions api-reference/custom_endpoints/get_custom_endpoint_list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: 'Get Custom Endpoint List'
api: 'GET /v0/custom_endpoint/list'
---
Returns a list of the available custom endpoints.

#### Authorizations

<ParamField header="Authorization" type="string" required="true">
Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token.
</ParamField>

<RequestExample>

```bash cURL
curl --request GET \
--url 'https://api.unify.ai/v0/custom_endpoint/list' \
--header 'Authorization: Bearer <UNIFY_KEY>'
```

```python Python
import requests

url = "https://api.unify.ai/v0/custom_endpoint/list"

headers = {"Authorization": "Bearer <token>"}

response = requests.request("GET", url, headers=headers)

print(response.text)
```

</RequestExample>
<ResponseExample>

```json 200
[
{
"name": "endpoint_1",
"mdl_name": "llama_finetune",
"url": "https://...",
"key": "custom_key_1"
},
{
"name": "endpoint_2",
"mdl_name": "mixtral_finetune",
"url": "https://...",
"key": "custom_key_2"
}
]
```

</ResponseExample>
73 changes: 73 additions & 0 deletions api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,51 @@
}
}
},
"/v0/custom_endpoint/list": {
"get": {
"tags": [
"Custom Endpoints"
],
"summary": "Get Custom Endpoint List",
"description": "Returns a list of the available custom endpoints.",
"operationId": "get_custom_endpoint_list_v0_custom_endpoint_list_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/CustomEndpointModelResponse"
},
"type": "array",
"title": "Response Get Custom Endpoint List V0 Custom Endpoint List Get"
},
"example": [
{
"name": "endpoint_1",
"mdl_name": "llama_finetune",
"url": "https://...",
"key": "custom_key_1"
},
{
"name": "endpoint_2",
"mdl_name": "mixtral_finetune",
"url": "https://...",
"key": "custom_key_2"
}
]
}
}
}
},
"security": [
{
"HTTPBearer": []
}
]
}
},
"/v0/custom_api_key": {
"post": {
"tags": [
Expand Down Expand Up @@ -3400,6 +3445,34 @@
],
"title": "CustomApiKeyModelResponse"
},
"CustomEndpointModelResponse": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"mdl_name": {
"type": "string",
"title": "Mdl Name"
},
"url": {
"type": "string",
"title": "Url"
},
"key": {
"type": "string",
"title": "Key"
}
},
"type": "object",
"required": [
"name",
"mdl_name",
"url",
"key"
],
"title": "CustomEndpointModelResponse"
},
"EvaluatorConfig": {
"properties": {
"name": {
Expand Down
3 changes: 2 additions & 1 deletion mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
"pages": [
"api-reference/custom_endpoints/create_custom_endpoint",
"api-reference/custom_endpoints/delete_custom_endpoint",
"api-reference/custom_endpoints/rename_custom_endpoint"
"api-reference/custom_endpoints/rename_custom_endpoint",
"api-reference/custom_endpoints/get_custom_endpoint_list"
]
},
{
Expand Down

0 comments on commit 47b9b88

Please sign in to comment.