Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instructions or gpt_assistant description issue resolve #3102

Closed
wants to merge 6 commits into from

Conversation

giriprasad51
Copy link

@giriprasad51 giriprasad51 commented Jul 10, 2024

Hiii @sonichi @qingyun-wu I made some changes in code please go through it

Related issue number #3101 #3095

@giriprasad51 giriprasad51 changed the title instructions or gpt_assistant description issue resolve instructions or gpt_assistant description issue resolve Jul 10, 2024
@giriprasad51
Copy link
Author

Hiii @sonichi @qingyun-wu need some clarification
if instructions == None and GPTAssistantAgent has candidate_assistants at that case what are excepted instructions
(AssistantAgent.DEFAULT_SYSTEM_MESSAGE or candidate_assistants[0].instructions)

@sonichi sonichi requested review from IANTHEREAL, jtrugman and Hk669 July 13, 2024 23:49
@@ -93,6 +90,7 @@ def __init__(
instructions,
openai_assistant_cfg.get("tools", []),
)
instructions = candidate_assistants[0].instructions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line needed? Line 174 updates the system message.
I do think that line 173 and 174 can be merged by setting the right system message in line 173 directly, unless
@IANTHEREAL suggests otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply. At lines 71 and 73, we will remove the model from openai_client_cfg caused by openai assistant api design. Please confirm if this will cause an error with super().__init__. I remember that ConversableAgent._validate_llm_config checks the configuration of the model. If it doesn’t cause an error now, please follow @sonichi suggestion.

Copy link

gitguardian bot commented Jul 20, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@jackgerrits
Copy link
Member

Looks like this is dormant, if you want to pick this up again please feel free to reopen. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants