Festlige commited on
Commit
70f1460
·
verified ·
1 Parent(s): df8f233

Create Text generation

Browse files
Files changed (1) hide show
  1. 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
+ }'