(modelName)
| 109 | get cachedModelDisplayMetadata() { |
| 110 | return app.cachedModelDisplayMetadata; |
| 111 | }, |
| 112 | getCurrentSession: () => app.getCurrentSession(), |
| 113 | getDefaultModelName: () => app.getDefaultModelName(), |
| 114 | normalizeModelName: (modelName) => app.normalizeModelName(modelName), |
| 115 | getPrimaryModelName: () => { |
| 116 | if (app.chatInput?.getPrimaryModelName) { |
| 117 | return app.chatInput.getPrimaryModelName(); |
| 118 | } |
| 119 | const session = app.getCurrentSession(); |
| 120 | const rawModelName = session?.model || app.state.pendingModelName || null; |
| 121 | return rawModelName ? (app.normalizeModelName(rawModelName) || rawModelName) : null; |
| 122 | }, |
| 123 | getCouncilSecondaryModelName: () => app.chatInput?.getSelectedCouncilSecondaryModelName?.() || '', |
| 124 | getCouncilSynthesisModelName: () => app.chatInput?.getCouncilSynthesisModelForSelection?.() || '', |
| 125 | renderCurrentModel: () => app.renderCurrentModel(), |
| 126 | refreshEditModelPickerButton: () => app.chatArea?.updateEditModelPickerButton?.(), |
| 127 | actions: { |
| 128 | async selectModel(modelName) { |
| 129 | const normalizedModelName = app.normalizeModelName(modelName); |
| 130 | const session = app.getCurrentSession(); |
nothing calls this directly
no test coverage detected