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

fix: gemini doesn't receive system messages... #2311

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

cmgzn
Copy link
Contributor

@cmgzn cmgzn commented Sep 20, 2024

change session to gpt method, add system messages as user messages to the gemini, and logging historical messages

cmgzn and others added 2 commits September 20, 2024 09:10
…thod, add system messages as user messages to the gemini, and logging historical messages
@6vision
Copy link
Collaborator

6vision commented Sep 25, 2024

logger.info(f"[Gemini] messages={gemini_messages}")

message信息打印,建议使用logger.debug打印,避免对话历史较长时候,打印过多日志~

@cmgzn
Copy link
Contributor Author

cmgzn commented Sep 26, 2024

logger.info(f"[Gemini] messages={gemini_messages}")

message信息打印,建议使用logger.debug打印,避免对话历史较长时候,打印过多日志~

Done

@6vision 6vision merged commit 6f682c9 into zhayujie:master Sep 26, 2024
@6vision
Copy link
Collaborator

6vision commented Sep 26, 2024

辛苦,感谢pr~

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.

3 participants