Skip to content

Commit

Permalink
add another missed StateKeys substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Sep 17, 2024
1 parent e0ea0f1 commit abd297a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion alphastats/gui/utils/gpt_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def get_assistant_functions(
Returns:
list[dict]: A list of assistant functions.
"""
# TODO figure out how this relates to the parameter `subgroups_for_each_group`
subgroups_for_each_group_ = str(
get_subgroups_for_each_group(st.session_state[StateKeys.DATASET].metadata)
)
return [
{
"type": "function",
Expand All @@ -165,7 +169,8 @@ def get_assistant_functions(
"subgroups": {
"type": "array",
"items": {"type": "string"},
"description": f"Specific subgroups within the group to analyze. For each group you need to look up the subgroups in the dict {str(get_subgroups_for_each_group(st.session_state['dataset'].metadata))} or present user with them first if you are not sure what to choose",
"description": f"Specific subgroups within the group to analyze. For each group you need to look up the subgroups in the dict"
f" {subgroups_for_each_group_} or present user with them first if you are not sure what to choose",
},
"method": {
"type": "string",
Expand Down

0 comments on commit abd297a

Please sign in to comment.