enh: arena model rate to reveal
This commit is contained in:
@@ -7,6 +7,7 @@ type TextStreamUpdate = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
citations?: any;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
selectedModelId?: any;
|
||||
error?: any;
|
||||
usage?: ResponseUsage;
|
||||
};
|
||||
@@ -71,6 +72,11 @@ async function* openAIStreamToIterator(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (parsedData.selected_model_id) {
|
||||
yield { done: false, value: '', selectedModelId: parsedData.selected_model_id };
|
||||
continue;
|
||||
}
|
||||
|
||||
yield {
|
||||
done: false,
|
||||
value: parsedData.choices?.[0]?.delta?.content ?? '',
|
||||
|
||||
Reference in New Issue
Block a user