Odd behavior regarding filtered function options
Image generation works with the major refactor on dev branch, but not always. Sometimes we get this:
Dec 09 07:48:32 gitlab-runner bash[324668]: estimate_required_context:99
Dec 09 07:48:33 gitlab-runner bash[324668]: estimate_required_context:{'modality': 'text', 'posts': 1}
Dec 09 07:48:33 gitlab-runner bash[324668]: f_avail:dict_keys(['text_response_default', 'outside_context_lookup_summary', 'get_current_weather', 'instant_self_code_analysis'])
Dec 09 07:48:33 gitlab-runner bash[324668]: choose_function:188
Dec 09 07:48:34 gitlab-runner bash[324668]: choose_function:{'function_name': 'generate_images_requested'}
Dec 09 07:48:34 gitlab-runner bash[324668]: generate_images_requested: ERROR: list index out of range
It shouldn't be happening because f_avail
is filtered to not include the image generation function, but still it's tried. Needs investigation.