mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-24 04:01:04 -04:00
feat: add support acp in common chat (#369)
This commit is contained in:
@@ -8,7 +8,14 @@ namespace QodeAssist::Session {
|
||||
|
||||
QString turnIdOf(const SessionEvent &event)
|
||||
{
|
||||
return std::visit([](const auto &alternative) { return alternative.turnId; }, event);
|
||||
return std::visit(
|
||||
[](const auto &alternative) -> QString {
|
||||
if constexpr (requires { alternative.turnId; })
|
||||
return alternative.turnId;
|
||||
else
|
||||
return {};
|
||||
},
|
||||
event);
|
||||
}
|
||||
|
||||
} // namespace QodeAssist::Session
|
||||
|
||||
Reference in New Issue
Block a user