diff --git a/README.md b/README.md index 876e3e6..be09520 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/bruno-export.json b/bruno-export.json new file mode 100644 index 0000000..1f660e8 --- /dev/null +++ b/bruno-export.json @@ -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)" + } + ] +} \ No newline at end of file diff --git a/img/bruno.png b/img/bruno.png new file mode 100644 index 0000000..8f19a09 Binary files /dev/null and b/img/bruno.png differ