Spaces:
Runtime error
Runtime error
"use_cache: false" for all requests
Browse files25 unmodified lines262728292930313212 unmodified lines45464748484950515253495051525354555657585925 unmodified lines temperature: conversation.config.temperature, max_tokens: conversation.config.maxTokens, }, { signal: abortController.signal } { 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( const response = await hf.chatCompletion({ model: model.id, messages, temperature: conversation.config.temperature, max_tokens: conversation.config.maxTokens, }); { 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