-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e31f566
commit 6bda5af
Showing
3 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
cls | ||
|
||
echo https://github.com/Mozilla-Ocho/llamafile | ||
|
||
curl http://localhost:8080/v1/chat/completions ^ | ||
-H "Content-Type: application/json" ^ | ||
-H "Authorization: Bearer no-key" ^ | ||
-d @cli_rest_llama_cpp.txt | python3 -c @py_json_dump.txt |more | ||
|
||
pause |
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,13 @@ | ||
{ | ||
"model": "LLaMA_CPP", | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "You are LLAMAfile, an AI assistant. Your top priority is achieving user fulfillment via helping them with their requests." | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "Write a limerick about python exceptions" | ||
} | ||
] | ||
} |
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,4 @@ | ||
import json | ||
import sys | ||
json.dump(json.load(sys.stdin), sys.stdout, indent=2) | ||
print() |