Spaces:
Runtime error
Runtime error
"use_cache: false" for all requests
Browse files25 unmodified lines2627282930313212 unmodified lines45464748495051525354555625 unmodified linestemperature: conversation.config.temperature,max_tokens: conversation.config.maxTokens,},{ signal: abortController.signal })) {if (chunk.choices && chunk.choices.length > 0 && chunk.choices[0]?.delta?.content) {out += chunk.choices[0].delta.content;12 unmodified lines...conversation.messages,];const response = await hf.chatCompletion({model: model.id,messages,temperature: conversation.config.temperature,max_tokens: conversation.config.maxTokens,});if (response.choices && response.choices.length > 0) {const { message } = response.choices[0];25 unmodified lines2627282930313212 unmodified lines45464748495051525354555657585925 unmodified linestemperature: conversation.config.temperature,max_tokens: conversation.config.maxTokens,},{ signal: abortController.signal, use_cache: false })) {if (chunk.choices && chunk.choices.length > 0 && chunk.choices[0]?.delta?.content) {out += chunk.choices[0].delta.content;12 unmodified lines...conversation.messages,];const response = await hf.chatCompletion({model: model.id,messages,temperature: conversation.config.temperature,max_tokens: conversation.config.maxTokens,},{ use_cache: false });if (response.choices && response.choices.length > 0) {const { message } = response.choices[0];
src/lib/components/InferencePlayground/inferencePlaygroundUtils.ts+10-7