Get openrouter streaming working

This commit is contained in:
Saoud Rizwan
2024-09-29 01:00:01 -04:00
parent 7271152f62
commit 59c188019a
4 changed files with 66 additions and 206 deletions

View File

@@ -270,7 +270,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
{!isCostAvailable && <ExportButton />}
</div>
{(shouldShowPromptCacheInfo || cacheReads !== undefined || cacheWrites !== undefined) && (
{shouldShowPromptCacheInfo && (cacheReads !== undefined || cacheWrites !== undefined) && (
<div style={{ display: "flex", alignItems: "center", gap: "4px", flexWrap: "wrap" }}>
<span style={{ fontWeight: "bold" }}>Cache:</span>
<span style={{ display: "flex", alignItems: "center", gap: "3px" }}>