Skip to content

Commit

Permalink
updated making queries code snippets to use real examples for the args.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Aug 28, 2024
1 parent fd27c5b commit b289efb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 49 deletions.
46 changes: 0 additions & 46 deletions tests/results_pruned.json

This file was deleted.

13 changes: 10 additions & 3 deletions universal_api/making_queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,28 @@ returned list, like so:

```shell
curl -X 'GET' \
'https://api.unify.ai/v0/models?provider=<some_provider>' \
'https://api.unify.ai/v0/models?provider=openai' \
-H 'Authorization: Bearer $UNIFY_KEY' \
-H 'accept: application/json'
```

```shell
curl -X 'GET' \
'https://api.unify.ai/v0/providers?model=<some_model>' \
'https://api.unify.ai/v0/providers?model=llama-3-8b-chat' \
-H 'Authorization: Bearer $UNIFY_KEY' \
-H 'accept: application/json'
```

```shell
curl -X 'GET' \
'https://api.unify.ai/v0/endpoints?<model or provider>=<some_model or some_provider>' \
'https://api.unify.ai/v0/endpoints?provider=openai' \
-H 'Authorization: Bearer $UNIFY_KEY' \
-H 'accept: application/json'
```

```shell
curl -X 'GET' \
'https://api.unify.ai/v0/endpoints?model=llama-3-8b-chat' \
-H 'Authorization: Bearer $UNIFY_KEY' \
-H 'accept: application/json'
```
Expand Down

0 comments on commit b289efb

Please sign in to comment.