Skip to content

Commit 5fe242e

Browse files
authored
Merge branch 'dev' into feat/move-directory-path
2 parents b171d65 + ae7a351 commit 5fe242e

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

packages/app/src/pages/layout/sidebar-items.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export const ProjectIcon = (props: { project: LocalProject; class?: string; noti
4343
<Avatar
4444
fallback={name()}
4545
src={
46-
props.project.id === OPENCODE_PROJECT_ID ? "https://opencode.ai/favicon.svg" : props.project.icon?.override
46+
props.project.id === OPENCODE_PROJECT_ID
47+
? "https://opencode.ai/favicon.svg"
48+
: props.project.icon?.override || props.project.icon?.url
4749
}
4850
{...getAvatarColors(props.project.icon?.color)}
4951
class="size-full rounded"

packages/console/app/src/routes/zen/util/modelTpmLimiter.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ export function createModelTpmLimiter(providers: { id: string; model: string; tp
3232
track: async (id: string, model: string, usageInfo: UsageInfo) => {
3333
const key = `${id}/${model}`
3434
if (!keys.includes(key)) return
35-
const usage =
36-
usageInfo.inputTokens +
37-
usageInfo.outputTokens +
38-
(usageInfo.reasoningTokens ?? 0) +
39-
(usageInfo.cacheReadTokens ?? 0) +
40-
(usageInfo.cacheWrite5mTokens ?? 0) +
41-
(usageInfo.cacheWrite1hTokens ?? 0)
35+
const usage = usageInfo.inputTokens
4236
if (usage <= 0) return
4337
await Database.use((tx) =>
4438
tx

0 commit comments

Comments
 (0)