-
Notifications
You must be signed in to change notification settings - Fork 20
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
51b58aa
commit a93411b
Showing
3 changed files
with
38 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 @@ | ||
curl http://127.0.0.1:8001/v1/caps |
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,15 @@ | ||
curl http://127.0.0.1:8001/v1/chat -k \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ | ||
"messages": [ | ||
{"role": "user", "content": "Who is Bill Clinton? What is his favorite programming language?"} | ||
], | ||
"stream": true, | ||
"parameters": { | ||
"temperature": 0.1, | ||
"max_new_tokens": 1000 | ||
} | ||
}' | ||
|
||
# Other possible parameters: | ||
# "model": "meta-llama/Llama-2-70b-chat-hf", |
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 @@ | ||
curl http://127.0.0.1:8001/v1/code-completion -k \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ | ||
"inputs": { | ||
"sources": {"hello.py": "def hello_world():"}, | ||
"cursor": { | ||
"file": "hello.py", | ||
"line": 0, | ||
"character": 18 | ||
}, | ||
"multiline": true | ||
}, | ||
"stream": false, | ||
"parameters": { | ||
"temperature": 0.1, | ||
"max_new_tokens": 20 | ||
} | ||
}' | ||
|
||
# Other possible parameters: | ||
# "scratchpad": "FIM-PSM", | ||
# "model": "smallcloudai/Refact-1_6b-fim", |