fix(deepseek): USD-only balance display, drop CNY/¥
Launcher and statusline show only USD from balance_infos; ¥ removed. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -171,13 +171,12 @@ if [[ "$model_id" == *deepseek* ]]; then
|
||||
import sys, json
|
||||
d = json.load(sys.stdin)
|
||||
infos = d.get('balance_infos', [])
|
||||
symbols = {'USD': '\$', 'CNY': '\u00a5'}
|
||||
parts = []
|
||||
for info in infos:
|
||||
curr = info.get('currency', '')
|
||||
if info.get('currency', '').upper() != 'USD':
|
||||
continue
|
||||
total = info.get('total_balance', '0')
|
||||
sym = symbols.get(curr, curr)
|
||||
parts.append(f'{sym}{total}')
|
||||
parts.append(f'\${total}')
|
||||
if parts:
|
||||
print(' '.join(parts))
|
||||
" 2>/dev/null)
|
||||
|
||||
Reference in New Issue
Block a user