Skip to content

Commit

Permalink
Merge pull request #129 from brainless/feature/integrate_olla_anthrop…
Browse files Browse the repository at this point in the history
…ic_send_chat_ai_request

Integrate Ollama, Anthropic
  • Loading branch information
brainless committed Jun 10, 2024
2 parents 12c86f1 + 8e0880a commit 568ea51
Show file tree
Hide file tree
Showing 63 changed files with 2,726 additions and 2,103 deletions.
109 changes: 68 additions & 41 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ts-rs = { version = "7.1.1", features = ["chrono", "chrono-impl", "url", "url-im
sqlx-postgres = "0.7.3"
chrono = { version = "0.4.34", features = ["serde"] }
sqlparser = "0.43.1"
reqwest = { version = "0.11.24", features = ["json"] }
reqwest = { version = "0.11.24", features = ["blocking", "json"] }
serde_json = "1.0.114"
tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread"] }
log = "0.4.21"
Expand Down
7 changes: 4 additions & 3 deletions src-tauri/migrations/20240601025237_chat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ CREATE TABLE chat
(
id INTEGER PRIMARY KEY,

previous_chat_id INTEGER,
root_chat_id INTEGER,
role VARCHAR(60),
message TEXT,
requested_content_format JSONB,
tool_response JSONB,
is_system_chat BOOL NOT NULL,
requested_ai_model_api_name VARCHAR(60),
requested_ai_model VARCHAR(60),
is_processed_by_ai BOOL,
api_error_response TEXT,

created_by_id INTEGER,
created_at DATETIME NOT NULL,
FOREIGN KEY (previous_chat_id) REFERENCES chat (id) ON DELETE CASCADE,
FOREIGN KEY (root_chat_id) REFERENCES chat (id) ON DELETE CASCADE,
FOREIGN KEY (created_by_id) REFERENCES user_account (id)
);
2 changes: 1 addition & 1 deletion src-tauri/migrations/20240603032137_workflow.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-- Workflow table to store repeatable tasks

CREATE TABLE workflow
(
id INTEGER PRIMARY KEY,
Expand All @@ -14,6 +13,7 @@ CREATE TABLE workflow
FOREIGN KEY (created_by_id) REFERENCES user_account (id)
);


CREATE TABLE step_template
(
id INTEGER PRIMARY KEY,
Expand Down
30 changes: 0 additions & 30 deletions src-tauri/src/ai/commands.rs

This file was deleted.

Loading

0 comments on commit 568ea51

Please sign in to comment.