Show remaining tokens

This commit is contained in:
Antonio Scandurra 2023-06-02 17:21:18 +02:00
parent 3750e64d9f
commit f00f16fe37
6 changed files with 162 additions and 8 deletions

View file

@ -23,6 +23,20 @@ export default function assistant(colorScheme: ColorScheme) {
margin: { top: 2, left: 8 },
...text(layer, "sans", "default", { size: "2xs" }),
},
remaining_tokens: {
padding: 4,
margin: { right: 16, top: 4 },
background: background(layer, "on"),
cornerRadius: 4,
...text(layer, "sans", "positive", { size: "xs" }),
},
no_remaining_tokens: {
padding: 4,
margin: { right: 16, top: 4 },
background: background(layer, "on"),
cornerRadius: 4,
...text(layer, "sans", "negative", { size: "xs" }),
},
apiKeyEditor: {
background: background(layer, "on"),
cornerRadius: 6,