Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanache authored Sep 8, 2024
1 parent e31f566 commit 6bda5af
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/llamafile_llava/_2.curl_cli.bat
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
13 changes: 13 additions & 0 deletions python/llamafile_llava/cli_rest_llama_cpp.txt
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"
}
]
}
4 changes: 4 additions & 0 deletions python/llamafile_llava/py_json_dump.txt
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()

0 comments on commit 6bda5af

Please sign in to comment.