Skip to content

Commit e00122f

Browse files
committed
Include reasoning effort in the web configuration details display
- also include reasoning effort of a web configuration
1 parent eb7aeb0 commit e00122f

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

  • apps/editor/src/views/panel/frontend/Main/MainView

‎apps/editor/src/views/panel/frontend/Main/MainView/MainView.tsx‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,24 @@ export const MainView: React.FC<Props> = (props) => {
228228
: web_configuration.name!.replace(/ \(\d+\)$/, '')
229229

230230
const get_details = (): string[] => {
231-
const { chatbot, model } = web_configuration
231+
const { chatbot, model, reasoning_effort } = web_configuration
232232
const model_display_name =
233233
model && chatbot ? CHATBOTS[chatbot].models?.[model]?.label || model : null
234234

235-
if (is_unnamed) return model_display_name ? [model_display_name] : []
236-
if (model_display_name) return [chatbot!, model_display_name]
237-
return chatbot ? [chatbot] : []
235+
const details: string[] = []
236+
if (is_unnamed) {
237+
if (model_display_name) details.push(model_display_name)
238+
} else if (model_display_name) {
239+
details.push(chatbot!, model_display_name)
240+
} else if (chatbot) {
241+
details.push(chatbot)
242+
}
243+
244+
if (reasoning_effort) {
245+
details.push(reasoning_effort)
246+
}
247+
248+
return details
238249
}
239250

240251
return {

0 commit comments

Comments
 (0)