()
| 544 | r.Frame.AnimationFrame++ |
| 545 | r.markDirty() |
| 546 | } |
| 547 | |
| 548 | func (r *UiRuntime) finishSubmitFrame() { |
| 549 | r.Frame.InputEnabled = true |
| 550 | r.Frame.InputMode = "normal" |
| 551 | r.Frame.InputPlaceholder = "请输入消息并回车。" |
| 552 | r.markDirty() |
| 553 | } |
| 554 | |
| 555 | func (r *UiRuntime) refreshContextWindowFrame() { |
| 556 | cfg, ok := r.engineConfig() |
| 557 | if !ok { |
| 558 | return |
| 559 | } |
| 560 | state := r.latestState() |
| 561 | snapshot := BuildContextWindowSnapshot(cfg, state) |
| 562 | r.Frame.ModelName = snapshot.ModelName |
| 563 | r.Frame.ContextUsedTokens = snapshot.UsedTokens |
| 564 | r.Frame.ContextLimitTokens = snapshot.LimitTokens |
no outgoing calls
no test coverage detected