mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix: address Greptile review feedback
- Remove response.audio.done and conversation.item.created from isRealtimeResponse() detection since the view doesn't render them; prevents misleading fallback for responses with only those events - Remove dead code: index >= 0 is always true in .map() callback Co-authored-by: Ishaan Jaff <ishaan-jaff@users.noreply.github.com>
This commit is contained in:
parent
1f0cb4705c
commit
1464baa8f6
1 changed files with 2 additions and 4 deletions
|
|
@ -88,9 +88,7 @@ export function isRealtimeResponse(response: any): boolean {
|
|||
(r: any) =>
|
||||
r.type === 'session.created' ||
|
||||
r.type === 'session.updated' ||
|
||||
r.type === 'response.done' ||
|
||||
r.type === 'response.audio.done' ||
|
||||
r.type === 'conversation.item.created'
|
||||
r.type === 'response.done'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -369,7 +367,7 @@ function ResponseTurn({
|
|||
return (
|
||||
<div
|
||||
style={{
|
||||
marginBottom: index >= 0 ? 12 : 0,
|
||||
marginBottom: 12,
|
||||
paddingBottom: 12,
|
||||
borderBottom: '1px solid #f5f5f5',
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue