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

Summarize the content using the current conversation model #4593

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chengtx809
Copy link

Fix bug: #4587
The bug comes from: app/constant.ts

export const SUMMARIZE_MODEL = "gpt-3.5-turbo";
export const GEMINI_SUMMARIZE_MODEL = "gemini-pro";

The problem of writing the summary model to death will result in the failure to summarize when using a non-GPT-3.5-turbo model
I changed it to:

export const UsedModel= `{{model}}`;

export const SUMMARIZE_MODEL = UsedModel;
export const GEMINI_SUMMARIZE_MODEL = UsedModel;

This automatically selects the model used for summarization

Copy link

vercel bot commented Apr 30, 2024

@chengtx809 is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

Your build has completed!

Preview deployment

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.

None yet

1 participant