Skip to content

Commit 23cc5c6

Browse files
committed
client-openai-completions.sh
1 parent 79ddf16 commit 23cc5c6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

llm/client-openai-completions.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
curl -s ${LLAMA_STACK_CLIENT_BASE_URL:-http://localhost:8321}/v1/chat/completions \
2+
-H "Content-Type: application/json" \
3+
-H "Authorization: Bearer none" \
4+
-d '{
5+
"model": "'${INFERENCE_MODEL:-ollama/llama3.2:3b}'",
6+
"messages": [ { "role": "user", "content": "Hi" } ]
7+
}' | jq .
8+

0 commit comments

Comments
 (0)