Repository navigation
Commit fb0c8ce
committed
Separate token count tracking for edit and ask instructions and remove unused format instruction metrics
- provide to `apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx` also other types of token counts
- remove passing 'edit format instructions' token count
└── apps
└── editor
└── src
├── constants
│ └── edit-format-instructions.ts
└── views
└── prompt
├── backend
│ ├── message-handlers
│ │ ├── handle-autofill.ts
│ │ └── index.ts
│ ├── prompt-view-provider.ts
│ └── utils
│ └── symbols
│ ├── clipboard-paths
│ │ └── replace-clipboard-paths-symbol.ts
│ ├── fragment
│ │ └── replace-fragment-symbol.ts
│ ├── git
│ │ └── replace-git-symbols.ts
│ ├── image
│ │ └── replace-image-symbol.ts
│ ├── pasted-text
│ │ └── replace-pasted-text-symbol.ts
│ ├── replace-symbols.ts
│ ├── saved-context
│ │ └── replace-saved-context-symbol.ts
│ ├── selection
│ │ └── replace-selection-symbol.ts
│ ├── skill
│ │ └── replace-skill-symbol.ts
│ └── website
│ └── replace-website-symbol.ts
├── frontend
│ ├── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ └── MainView.tsx
│ ├── Prompt.tsx
│ └── hooks
│ └── use-prompt
│ └── use-prompt.ts
└── types
└── messages.ts1 parent 9786e84 commit fb0c8ce
6 files changed
Lines changed: 20 additions & 23 deletions
File tree
- apps/editor/src/views/prompt
- backend
- frontend
- Main
- MainView
- hooks/use-prompt
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 117 | | |
124 | 118 | | |
125 | 119 | | |
| |||
554 | 548 | | |
555 | 549 | | |
556 | 550 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | 551 | | |
569 | 552 | | |
570 | 553 | | |
| |||
577 | 560 | | |
578 | 561 | | |
579 | 562 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | 563 | | |
584 | 564 | | |
585 | 565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| 493 | + | |
| 494 | + | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| 128 | + | |
| 129 | + | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
| |||
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
240 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
241 | 249 | | |
242 | 250 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | 666 | | |
668 | 667 | | |
669 | 668 | | |
| |||
0 commit comments