new chatlistview component, file attachments, performance & primitive test
This commit is contained in:
@@ -29,7 +29,12 @@ class Chat : public QObject {
|
||||
Q_PROPERTY(
|
||||
bool toolsEnabled READ toolsEnabled WRITE setToolsEnabled NOTIFY
|
||||
toolsEnabledChanged)
|
||||
Q_PROPERTY(QString lastError READ lastError NOTIFY lastErrorChanged)
|
||||
Q_PROPERTY(
|
||||
bool sandboxEnabled READ sandboxEnabled WRITE setSandboxEnabled NOTIFY
|
||||
sandboxEnabledChanged)
|
||||
Q_PROPERTY(bool error READ error NOTIFY errorChanged)
|
||||
Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorChanged)
|
||||
Q_PROPERTY(QString serverError READ serverError NOTIFY serverErrorChanged)
|
||||
Q_PROPERTY(ZShell::llm::ChatStore* chats READ chats CONSTANT)
|
||||
Q_PROPERTY(
|
||||
QString streamingChatId READ streamingChatId NOTIFY
|
||||
@@ -45,7 +50,11 @@ class Chat : public QObject {
|
||||
[[nodiscard]] int contextSize() const;
|
||||
[[nodiscard]] bool toolsEnabled() const;
|
||||
void setToolsEnabled(bool value);
|
||||
[[nodiscard]] QString lastError() const { return m_lastError; }
|
||||
[[nodiscard]] bool sandboxEnabled() const;
|
||||
void setSandboxEnabled(bool value);
|
||||
[[nodiscard]] bool error() const { return m_hasError; }
|
||||
[[nodiscard]] QString errorMessage() const { return m_errorMessage; }
|
||||
[[nodiscard]] QString serverError() const;
|
||||
[[nodiscard]] ChatStore* chats() const { return m_store; }
|
||||
[[nodiscard]] QString streamingChatId() const;
|
||||
|
||||
@@ -64,14 +73,17 @@ class Chat : public QObject {
|
||||
void availableModelsChanged();
|
||||
void contextSizeChanged();
|
||||
void toolsEnabledChanged();
|
||||
void sandboxEnabledChanged();
|
||||
void errorOccurred(const QString& message);
|
||||
void lastErrorChanged();
|
||||
void errorChanged();
|
||||
void serverErrorChanged();
|
||||
void streamingChatIdChanged();
|
||||
|
||||
private:
|
||||
ChatStore* m_store = nullptr;
|
||||
LlmClient* m_client = nullptr;
|
||||
QString m_lastError;
|
||||
bool m_hasError = false;
|
||||
QString m_errorMessage;
|
||||
|
||||
static Chat* s_instance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user