Closed lc0rp closed 9 months ago
We shouldn't update assistant attributions while the assistant name is not unique in OpenAI. PR https://github.com/microsoft/autogen/pull/925 is the first step to mitigate this issue
@gagb for visibility
@lc0rp, I agree with @IANTHEREAL -- the name field is not unique, and if you see @IANTHEREAL's PR he added a clarification for overwrite_instructions
saying "This parameter is in effect only when assistant_id is specified in llm_config."
This was addressed.
Describe the bug
autogen/agentchat/contrib/gpt_assistant_agent.py lines 94+ which updates the instructions only gets run if an openai_assistant_id was passed in, but the changes in #718 introduce the ability to retrieve an assistant by name, if openai_assistant_id is None.
The agent retrieved_by_name will not get instructions updated even if overwrite_instructions=True.
@IANTHEREAL - possible fix is to outdent lines 89 to 105
Steps to reproduce
Expected Behavior
One expects overwrite_instructions to be respected even if the agent is retrieved by name.
Screenshots and logs
No response
Additional Information
No response