add removal of chat sessions, auto title + icon, proper stick-to-bottom as response is streamed
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <QStringList>
|
||||
#include <QtQml>
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "chatstore.hpp"
|
||||
|
||||
class QQmlEngine;
|
||||
@@ -76,6 +78,13 @@ class Chat : public QObject {
|
||||
void updateTokenUsage(const QJsonObject& data);
|
||||
static void trimHistory(ChatSession* session, int contextSize);
|
||||
|
||||
void shortRequest(
|
||||
const QString& tag,
|
||||
const QString& systemPrompt,
|
||||
const QString& userText,
|
||||
std::function<void(QString result)> onResult);
|
||||
void requestTitle(const QString& chatId, const QString& userText);
|
||||
void requestIcon(const QString& chatId, const QString& userText);
|
||||
static QString titleFrom(const QString& content);
|
||||
static QString completionsPath(const QString& endpoint, const QString& subpath);
|
||||
static QString serverErrorMessage(
|
||||
|
||||
Reference in New Issue
Block a user