generated from stratosphereips/awesome-code-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from stratosphereips/feat_database-support
Add DB support to translate messages automatically with LLM model
- Loading branch information
Showing
8 changed files
with
858 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE TABLE IF NOT EXISTS translation_parameters ( | ||
translation_parameters_id INTEGER PRIMARY KEY, | ||
translation_tool_name TEXT, | ||
translation_tool_commit TEXT, | ||
translation_model TEXT, | ||
translation_config_sha256 TEXT, | ||
translation_config TEXT, | ||
UNIQUE(translation_tool_name, translation_tool_commit, translation_model, translation_config_sha256, translation_config) | ||
); | ||
|
||
|
||
|
||
CREATE TABLE IF NOT EXISTS message_translation ( | ||
translation_id INTEGER PRIMARY KEY, | ||
translation_parameters_id INTEGER, | ||
message_id INTEGER, | ||
translation_text TEXT, | ||
translation_timestamp TIMESTAMPTZ(0), | ||
UNIQUE(message_id, translation_parameters_id), | ||
FOREIGN KEY (translation_parameters_id) REFERENCES translation_parameters(translation_parameters_id), | ||
FOREIGN KEY (message_id) REFERENCES messages(message_id) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.