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

why the to_message function in chat_history.py is trying to add an assistent message? #133

Open
Lucas-TY opened this issue May 14, 2024 · 2 comments

Comments

@Lucas-TY
Copy link

Related code:

async def to_messages(

def construct_messages(

If there is no message to add, the structure of the mssages will be system/user

But if there is a history message, the structure will change into system/assistant/user, which will cause an error since its not system/user/assistant/user .....

@Lucas-TY
Copy link
Author

The second role in LLAMA must be 'user.' Does that mean AgentVerse is not compatible with LLAMA models?

@Lucas-TY
Copy link
Author

there will be an error if you lunch llama model with local vllm

openai.BadRequestError: Error code: 400 - {'object': 'error', 'message': 'Conversation roles must alternate user/assistant/user/assistant/...', 'type': 'BadRequestError', 'param': None, 'code': 400}

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

No branches or pull requests

1 participant