Spaces:
Runtime error
Runtime error
Added a system message to the chat completion request.
Browse files64 unmodified lines6566676869707164 unmodified linesfor await (const chunk of hf.chatCompletionStream({model: currentModel,messages: messages.map(({ role, content }) => ({ role, content })),temperature: temperature,max_tokens: maxTokens})) {64 unmodified lines6566676869707172737464 unmodified linesfor await (const chunk of hf.chatCompletionStream({model: currentModel,messages: [systemMessage,...messages.map(({ role, content }) => ({ role, content }))],temperature: temperature,max_tokens: maxTokens})) {
src/lib/components/Playground/Playground.svelte+4-1