Skip to content

Commit 4e92b0f

Browse files
committed
Update to changes in the Denario API
1 parent cc38edf commit 4e92b0f

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "denario_app"
3-
version = "0.1.12"
3+
version = "0.1.13"
44
description = "GUI for the multiagent research assistant Denario"
55
maintainers = [
66
{ name = "Denario", email = "denario.astropilot.ai@gmail.com" },

src/denario_app/components.py

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,8 @@ def description_comp(den: Denario) -> None:
9191
summarizer_model=summarizer_model,
9292
summarizer_response_formatter_model=formatter_model
9393
)
94-
except TypeError as e:
95-
if "unexpected keyword argument" in str(e):
96-
# Fallback to method without model parameters (older version)
97-
st.warning("Using enhanced data description without model selection (please restart the app to enable model selection)")
98-
den.enhance_data_description()
99-
else:
100-
raise e
94+
except Exception as e:
95+
raise e
10196

10297
st.success("Data description enhanced successfully!")
10398
# Clear the text area by updating session state
@@ -187,15 +182,15 @@ def idea_comp(den: Denario) -> None:
187182
col5, col6 = st.columns(2)
188183
with col5:
189184
st.caption("Default Orchestration Model")
190-
default_orchestration_model = st.selectbox(
185+
orchestration_model = st.selectbox(
191186
"Default Orchestration Model",
192187
model_keys,
193188
index=model_keys.index("gpt-4.1"),
194189
key="idea_orchestration_model"
195190
)
196191
with col6:
197192
st.caption("Default Formatter Model")
198-
default_formatter_model = st.selectbox(
193+
formatter_model = st.selectbox(
199194
"Default Formatter Model",
200195
model_keys,
201196
index=model_keys.index("o3-mini"),
@@ -249,8 +244,8 @@ def idea_comp(den: Denario) -> None:
249244
idea_hater_model=models[idea_hater_model],
250245
planner_model=models[planner_model],
251246
plan_reviewer_model=models[plan_reviewer_model],
252-
default_orchestration_model=models[default_orchestration_model],
253-
default_formatter_model=models[default_formatter_model],
247+
orchestration_model=models[orchestration_model],
248+
formatter_model=models[formatter_model],
254249
mode="cmbagent")
255250

256251
if st.session_state.idea_running: # Only show success if not stopped
@@ -330,15 +325,15 @@ def method_comp(den: Denario) -> None:
330325
col5, col6 = st.columns(2)
331326
with col5:
332327
st.caption("Default Orchestration Model")
333-
default_orchestration_model = st.selectbox(
328+
orchestration_model = st.selectbox(
334329
"Default Orchestration Model",
335330
model_keys,
336331
index=model_keys.index("gpt-4.1"),
337332
key="method_orchestration_model"
338333
)
339334
with col6:
340335
st.caption("Default Formatter Model")
341-
default_formatter_model = st.selectbox(
336+
formatter_model = st.selectbox(
342337
"Default Formatter Model",
343338
model_keys,
344339
index=model_keys.index("o3-mini"),
@@ -390,8 +385,8 @@ def method_comp(den: Denario) -> None:
390385
den.get_method(planner_model=planner_model,
391386
plan_reviewer_model=plan_reviewer_model,
392387
method_generator_model=method_generator_model,
393-
default_orchestration_model=models[default_orchestration_model],
394-
default_formatter_model=models[default_formatter_model],
388+
orchestration_model=models[orchestration_model],
389+
formatter_model=models[formatter_model],
395390
mode="cmbagent")
396391

397392
if st.session_state.method_running: # Only show success if not stopped
@@ -473,15 +468,15 @@ def results_comp(den: Denario) -> None:
473468
col3, col4 = st.columns(2)
474469
with col3:
475470
st.caption("Default Orchestration Model")
476-
default_orchestration_model = st.selectbox(
471+
orchestration_model = st.selectbox(
477472
"Default Orchestration Model",
478473
model_keys,
479474
index=model_keys.index("gpt-4.1"),
480475
key="results_orchestration_model"
481476
)
482477
with col4:
483478
st.caption("Default Formatter Model")
484-
default_formatter_model = st.selectbox(
479+
formatter_model = st.selectbox(
485480
"Default Formatter Model",
486481
model_keys,
487482
index=model_keys.index("o3-mini"),
@@ -542,8 +537,8 @@ def results_comp(den: Denario) -> None:
542537
plan_reviewer_model=models[plan_reviewer_model],
543538
max_n_attempts=max_n_attempts,
544539
max_n_steps=max_n_steps,
545-
default_orchestration_model=models[default_orchestration_model],
546-
default_formatter_model=models[default_formatter_model])
540+
orchestration_model=models[orchestration_model],
541+
formatter_model=models[formatter_model])
547542

548543
if st.session_state.results_running: # Only show success if not stopped
549544
st.success("Done!")

0 commit comments

Comments
 (0)