Anthropic: more precise usage link to show the token usage. Fixes #524

This commit is contained in:
Enrico Ros
2024-05-06 23:48:41 -07:00
parent 3b5ab0ac70
commit 88762db484
@@ -50,7 +50,7 @@ export function AnthropicSourceSetup(props: { sourceId: DModelSourceId }) {
rightLabel={<>{needsUserKey
? !anthropicKey && <Link level='body-sm' href='https://www.anthropic.com/earlyaccess' target='_blank'>request Key</Link>
: '✔️ already set in server'
} {anthropicKey && keyValid && <Link level='body-sm' href='https://console.anthropic.com/' target='_blank'>check usage</Link>}
} {anthropicKey && keyValid && <Link level='body-sm' href='https://console.anthropic.com/settings/usage' target='_blank'>show tokens usage</Link>}
</>}
value={anthropicKey} onChange={value => updateSetup({ anthropicKey: value })}
required={needsUserKey} isError={keyError}