mishig HF staff commited on
Commit
ef1a1c6
1 Parent(s): 251818f
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte CHANGED
@@ -199,7 +199,7 @@ print(output.choices[0].message)`
199
  --header "Authorization: Bearer {YOUR_HF_TOKEN}" \\
200
  --header 'Content-Type: application/json' \\
201
  --data '{
202
- "model": "meta-llama/Meta-Llama-3-8B-Instruct",
203
  "messages": ${formattedMessages({ sep: ',\n ', start: `[\n `, end: `\n]` })},
204
  ${formattedConfig({ sep: ',\n ', start: '', end: '' })},
205
  "stream": true
@@ -213,7 +213,7 @@ print(output.choices[0].message)`
213
  --header "Authorization: Bearer {YOUR_HF_TOKEN}" \\
214
  --header 'Content-Type: application/json' \\
215
  --data '{
216
- "model": "meta-llama/Meta-Llama-3-8B-Instruct",
217
  "messages": ${formattedMessages({ sep: ',\n ', start: `[\n `, end: `\n]` })},
218
  ${formattedConfig({ sep: ',\n ', start: '', end: '' })}
219
  }'`
 
199
  --header "Authorization: Bearer {YOUR_HF_TOKEN}" \\
200
  --header 'Content-Type: application/json' \\
201
  --data '{
202
+ "model": "${conversation.model.id}",
203
  "messages": ${formattedMessages({ sep: ',\n ', start: `[\n `, end: `\n]` })},
204
  ${formattedConfig({ sep: ',\n ', start: '', end: '' })},
205
  "stream": true
 
213
  --header "Authorization: Bearer {YOUR_HF_TOKEN}" \\
214
  --header 'Content-Type: application/json' \\
215
  --data '{
216
+ "model": "${conversation.model.id}",
217
  "messages": ${formattedMessages({ sep: ',\n ', start: `[\n `, end: `\n]` })},
218
  ${formattedConfig({ sep: ',\n ', start: '', end: '' })}
219
  }'`