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>
|
<em>Reasoning: {r.reasoning}</em>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={styles.responseMeta}>
|
{(r.modelName || r.processingTime != null) && (
|
||||||
<span>{r.modelName}</span>
|
<div className={styles.responseMeta}>
|
||||||
<span>{r.processingTime.toFixed(1)}s</span>
|
<span>{r.modelName || ''}</span>
|
||||||
<span>{r.priceCHF.toFixed(4)} CHF</span>
|
{r.processingTime != null && <span>{r.processingTime.toFixed(1)}s</span>}
|
||||||
</div>
|
{r.priceCHF != null && <span>{r.priceCHF.toFixed(4)} CHF</span>}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
{botResponses.length === 0 && (
|
{botResponses.length === 0 && (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue