Skip to content

Commit b0e62c1

Browse files
committed
Use chatbot model labels in web configuration details
- in response preview, in details, model names should use labels (send them through websockets correctly) ├── apps │ ├── browser │ │ └── src │ │ ├── background │ │ │ └── message-handler.ts │ │ ├── content-scripts │ │ │ └── send-prompt-content-script │ │ │ ├── send-prompt-content-script.ts │ │ │ └── utils │ │ │ ├── add-apply-response-button.ts │ │ │ └── session-state.ts │ │ └── types │ │ └── messages.ts │ └── editor │ └── src │ ├── commands │ │ ├── apply-response-command │ │ │ ├── apply-response-command.ts │ │ │ ├── response-processor │ │ │ │ └── response-processor.ts │ │ │ └── utils │ │ │ ├── preview │ │ │ │ └── preview.ts │ │ │ └── preview-handler.ts │ │ └── history-command │ │ └── actions │ │ └── restore-checkpoint.ts │ ├── services │ │ ├── websocket-manager.ts │ │ └── websocket-server-process.ts │ └── views │ └── prompt │ ├── backend │ │ ├── message-handlers │ │ │ └── handle-apply-response-from-history.ts │ │ └── prompt-view-provider.ts │ ├── frontend │ │ ├── Prompt.tsx │ │ └── hooks │ │ └── use-preview-manager.ts │ └── types │ └── messages.ts └── packages ├── shared │ └── src │ ├── constants │ │ └── chatbots.ts │ └── types │ ├── response-history-item.ts │ └── websocket-message.ts └── ui └── src └── components └── editor └── prompt-view └── ResponsePreview └── ResponsePreview.tsx
1 parent 1e1f2e0 commit b0e62c1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/browser/src/background/message-handler.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ const process_next_chat = async () => {
7676
web_configuration_details: current_chat_message.chatbot
7777
? {
7878
chatbot: current_chat_message.chatbot,
79-
model: current_chat_message.model,
79+
model: current_chat_message.model
80+
? CHATBOTS[current_chat_message.chatbot as keyof typeof CHATBOTS]?.models?.[
81+
current_chat_message.model
82+
]?.label ?? current_chat_message.model
83+
: undefined,
8084
reasoning_effort: current_chat_message.reasoning_effort
8185
}
8286
: undefined

0 commit comments

Comments
 (0)