fix: toFixed crash bei botResponse ohne processingTime/priceCHF (greeting, commands)
Made-with: Cursor
This commit is contained in:
parent
31bf734def
commit
3aef70ab5f
1 changed files with 7 additions and 5 deletions
|
|
@ -364,11 +364,13 @@ export const TeamsbotSessionView: React.FC = () => {
|
|||
<em>Reasoning: {r.reasoning}</em>
|
||||
</div>
|
||||
)}
|
||||
<div className={styles.responseMeta}>
|
||||
<span>{r.modelName}</span>
|
||||
<span>{r.processingTime.toFixed(1)}s</span>
|
||||
<span>{r.priceCHF.toFixed(4)} CHF</span>
|
||||
</div>
|
||||
{(r.modelName || r.processingTime != null) && (
|
||||
<div className={styles.responseMeta}>
|
||||
<span>{r.modelName || ''}</span>
|
||||
{r.processingTime != null && <span>{r.processingTime.toFixed(1)}s</span>}
|
||||
{r.priceCHF != null && <span>{r.priceCHF.toFixed(4)} CHF</span>}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
{botResponses.length === 0 && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue