Skip to content

Commit

Permalink
bruno
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Dec 14, 2023
1 parent 10898c5 commit 0bd2536
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ Response:
}
```

### Bruno API client

![Screenshot: Bruno API client](./img/bruno.png)

Download export for [Bruno](https://www.usebruno.com/) API client: [`bruno-export.json`](./bruno-export.json)

## Configuration

The configuration of the software can be done with environment variables.
Expand Down
119 changes: 119 additions & 0 deletions bruno-export.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"name": "OpenAI -> Vertex AI",
"version": "1",
"items": [
{
"type": "http",
"name": "Versions",
"seq": 1,
"request": {
"url": "{{baseUrl}}/",
"method": "GET",
"headers": [],
"body": {
"mode": "none",
"formUrlEncoded": [],
"multipartForm": []
},
"auth": {
"mode": "none",
"basic": {
"username": "",
"password": ""
},
"bearer": {
"token": ""
}
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"query": []
}
},
{
"type": "http",
"name": "Models",
"seq": 2,
"request": {
"url": "{{baseUrl}}/v1/models",
"method": "GET",
"headers": [],
"body": {
"mode": "none",
"formUrlEncoded": [],
"multipartForm": []
},
"auth": {
"mode": "none",
"basic": {
"username": "",
"password": ""
},
"bearer": {
"token": ""
}
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"query": []
}
},
{
"type": "http",
"name": "Chat",
"seq": 3,
"request": {
"url": "{{baseUrl}}/v1/chat/completions",
"method": "POST",
"headers": [],
"body": {
"mode": "json",
"json": "{\n \"model\": \"gpt-3.5-turbo\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Say this is a test!\"\n }\n ]\n}",
"formUrlEncoded": [],
"multipartForm": []
},
"auth": {
"mode": "bearer",
"basic": {
"username": "",
"password": ""
},
"bearer": {
"token": "{{openAiKey}}"
}
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"query": []
}
}
],
"activeEnvironmentUid": "v8GNrlp7tgKwaZxgnKG5l",
"environments": [
{
"variables": [
{
"name": "baseUrl",
"value": "http://127.0.0.1:8000",
"enabled": true,
"secret": false,
"type": "text"
},
{
"name": "openAiKey",
"value": "",
"enabled": true,
"secret": true,
"type": "text"
}
],
"name": "localhost (OpenAI -> Vertex AI)"
}
]
}
Binary file added img/bruno.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0bd2536

Please sign in to comment.