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

[Issue]: It just terminates the session #2232

Open
nothingness6 opened this issue Apr 1, 2024 · 6 comments
Open

[Issue]: It just terminates the session #2232

nothingness6 opened this issue Apr 1, 2024 · 6 comments
Labels
studio Related to AutoGen Studio.

Comments

@nothingness6
Copy link

Describe the issue

Whatever I type, it just terminates the session.

Steps to reproduce

  1. Changed to a different model, Mistral Instruct v0.1-> Mistral Instruct v0.2.
  2. Changed to a different model, Mistral Instruct v0.2 -> Mistral v0.1

Screenshots and logs

autogen

Modified files:  0
Request reply None sender_type agent silent False sender userproxy
�[33muserproxy�[0m (to LMstudio_assistant):

Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']
Hello
Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1

--------------------------------------------------------------------------------
Request reply None sender_type agent silent False sender LMstudio_assistant
�[33mLMstudio_assistant�[0m (to userproxy):
Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']

Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1
# filename

--------------------------------------------------------------------------------
Request reply None sender_type agent silent False sender userproxy
�[33muserproxy�[0m (to LMstudio_assistant):

TERMINATE

Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']
--------------------------------------------------------------------------------
Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1
Modified files:  0
Request reply None sender_type agent silent False sender userproxy
�[33muserproxy�[0m (to LMstudio_assistant):

Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']
hello
Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1

--------------------------------------------------------------------------------
Request reply None sender_type agent silent False sender LMstudio_assistant
�[33mLMstudio_assistant�[0m (to userproxy):
Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']

Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1
TERMIN

--------------------------------------------------------------------------------
Request reply None sender_type agent silent False sender userproxy
�[33muserproxy�[0m (to LMstudio_assistant):

TERMINATE
Active Connections:  ['3e4e4342-b114-4435-9722-8a649bf193a1']

--------------------------------------------------------------------------------
Current message connection id:  3e4e4342-b114-4435-9722-8a649bf193a1
Modified files:  0

Additional Information

AutoGen Version: v0.0.56
Operating System: Windows 10 64 bit
Python Version: 3.10

@jackgerrits jackgerrits added the studio Related to AutoGen Studio. label Apr 1, 2024
@ekzhu
Copy link
Collaborator

ekzhu commented Apr 2, 2024

Have you tried to update the system messages of the agent? Different models should have different system messages. The default one is tailored to OpenAI's models.

@nothingness6
Copy link
Author

Have you tried to update the system messages of the agent? Different models should have different system messages. The default one is tailored to OpenAI's models.

Great! I figured it out. Thanks for your help!
Btw, it shows the response with a single or a couple words on the line instead of a full sentence. Plus, why does it show the history instead of showing just a response?
Please take a look at this:
autogen
autogen-02

@ekzhu
Copy link
Collaborator

ekzhu commented Apr 10, 2024

It is showing a chat history because under-the-hood a message from the human user triggers a two-agent chat workflow, and the summary of the two-agent chat conversation is the final response to the human user.

@Giova200
Copy link

same error here, i use lm studio, and i always do like this getting stuck in clicles saying random things, ho an i fix, i already changed the system message of the agent, ca u give me urs if it works?

@sonichi
Copy link
Collaborator

sonichi commented Apr 16, 2024

@jackgerrits @victordibia This issue involves LMStudio and AGS.

@victordibia
Copy link
Collaborator

victordibia commented Apr 16, 2024

@Giova200 , thanks for mentioning this.
I think this is related to #2050.
Essentially, some models/endpoints require max_tokens to be explicitly which seems to be the case with lmstudio.
I am working on exposing that parameter correctly in the Agent UI. In the mean time, consider the work around in the #2050 (setting the default max tokens directly in code)

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

No branches or pull requests

6 participants