Co-authored-by: Evan <evanev7@gmail.com>
Co-authored-by: Alex Cheema <alexcheema123@gmail.com>
This commit is contained in:
rltakashige
2025-11-20 20:03:51 +00:00
committed by GitHub
parent d793f5f96c
commit 28a91787e8
30 changed files with 645 additions and 332 deletions

View File

@@ -13,9 +13,9 @@ QUERY="$*"
curl -sN -X POST "http://$HOST:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
-d "{
\"model\": \"mlx-community/Llama-3.3-70B-Instruct-8bit\",
\"model\": \"mlx-community/Kimi-K2-Thinking\",
\"stream\": true,
\"messages\": [{ \"role\": \"user\", \"content\": \"$QUERY\" }]
\"messages\": [{ \"role\": \"user\", \"content\": \"$QUERY\"}]
}" |
grep --line-buffered '^data:' |
grep --line-buffered -v 'data: \[DONE\]' |