Create Text generation
Browse files- Text generation +8 -0
Text generation
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
curl -sS https://router.huggingface.co/v1/chat/completions \
|
| 2 |
+
-H "Authorization: Bearer $HF_TOKEN" \
|
| 3 |
+
-H "Content-Type: application/json" \
|
| 4 |
+
-d '{
|
| 5 |
+
"model": "meta-llama/Llama-3.1-8B-Instruct",
|
| 6 |
+
"messages": [{"role":"user","content":"Say hi in 1 short sentence."}],
|
| 7 |
+
"max_tokens": 80
|
| 8 |
+
}'
|