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

安卓端不支持上下文对话 #241

Open
Zhu1004 opened this issue Jan 14, 2025 · 0 comments
Open

安卓端不支持上下文对话 #241

Zhu1004 opened this issue Jan 14, 2025 · 0 comments

Comments

@Zhu1004
Copy link

Zhu1004 commented Jan 14, 2025

请教一下大佬,我看代码llm.cpp中支持上下文对话:
void Llm::chat() {
std::vector history;
history.push_back(std::make_pair("system", "You are a helpful assistant."));
while (true) {
std::cout << "\nQ: ";
std::string user_str;
std::cin >> user_str;
if (user_str == "/exit") {
break;
}
if (user_str == "/reset") {
history.resize(1);
std::cout << "\nA: reset done." << std::endl;
continue;
}
std::cout << "\nA: " << std::flush;
history.emplace_back(std::make_pair("user", user_str));
auto assistant_str = response(history);
history.emplace_back(std::make_pair("assistant", assistant_str));
std::cout << std::endl;
}
}
但我在安卓端运行Qwenvl的时候明显感觉他无法感知上下文,不能支持多轮对话,请问这是为什么呢?

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