-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/conda
- Loading branch information
Showing
30 changed files
with
552 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
examples/bruno/LocalAI Test Requests/backend monitor/backend monitor.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: backend monitor | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
get { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/backend/monitor | ||
body: none | ||
auth: none | ||
} |
21 changes: 21 additions & 0 deletions
21
examples/bruno/LocalAI Test Requests/backend monitor/backend-shutdown.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: backend-shutdown | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
post { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/backend/shutdown | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"model": "{{DEFAULT_MODEL}}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"version": "1", | ||
"name": "LocalAI Test Requests", | ||
"type": "collection" | ||
} |
6 changes: 6 additions & 0 deletions
6
examples/bruno/LocalAI Test Requests/environments/localhost.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
vars { | ||
HOST: localhost | ||
PORT: 8080 | ||
DEFAULT_MODEL: gpt-3.5-turbo | ||
PROTOCOL: http:// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: get models list | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/models | ||
body: none | ||
auth: none | ||
} |
24 changes: 24 additions & 0 deletions
24
examples/bruno/LocalAI Test Requests/llm text/-completions.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
meta { | ||
name: -completions | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
post { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/completions | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"model": "{{DEFAULT_MODEL}}", | ||
"prompt": "function downloadFile(string url, string outputPath) {", | ||
"max_tokens": 256, | ||
"temperature": 0.5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
meta { | ||
name: -edits | ||
type: http | ||
seq: 5 | ||
} | ||
|
||
post { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/edits | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"model": "{{DEFAULT_MODEL}}", | ||
"input": "What day of the wek is it?", | ||
"instruction": "Fix the spelling mistakes" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
examples/bruno/LocalAI Test Requests/llm text/-embeddings.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
meta { | ||
name: -embeddings | ||
type: http | ||
seq: 6 | ||
} | ||
|
||
post { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/embeddings | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"model": "{{DEFAULT_MODEL}}", | ||
"input": "A STRANGE GAME.\nTHE ONLY WINNING MOVE IS NOT TO PLAY.\n\nHOW ABOUT A NICE GAME OF CHESS?" | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
examples/bruno/LocalAI Test Requests/llm text/chat/chat completion -simple- 1 message-.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
meta { | ||
name: chat completion -simple- 1 message- | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
post { | ||
url: {{PROTOCOL}}{{HOST}}:{{PORT}}/chat/completions | ||
body: json | ||
auth: none | ||
} | ||
|
||
headers { | ||
Content-Type: application/json | ||
} | ||
|
||
body:json { | ||
{ | ||
"model": "{{DEFAULT_MODEL}}", | ||
"messages": [{"role": "user", "content": "How could one use friction to cook an egg?"}], | ||
"max_tokens": 256, | ||
"temperature": 0.2 | ||
} | ||
} |
Oops, something went wrong.