wip
Browse files
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": "
|
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": "
|
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 |
}'`
|