Skip to content

Commit

Permalink
fix(ChatData): Fix MySQL connection bug (#640)
Browse files Browse the repository at this point in the history
1. fix:mysql connection bug
2. fix:model path switch bug
  • Loading branch information
fangyinc authored Sep 28, 2023
2 parents a35f4ac + b5b3f24 commit b2a428a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion pilot/connections/manages/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def __load_config_db(self):
CFG.LOCAL_DB_PASSWORD,
"",
)
if CFG.LOCAL_DB_PATH:
db_type = DBType.of_db_type(CFG.LOCAL_DB_TYPE)
if db_type.is_file_db():
db_name = CFG.LOCAL_DB_NAME
db_type = CFG.LOCAL_DB_TYPE
db_path = CFG.LOCAL_DB_PATH
Expand Down
2 changes: 1 addition & 1 deletion pilot/server/static/404.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/404/index.html

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/chat/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/database/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/datastores/documents/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/datastores/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pilot/server/static/models/index.html

Large diffs are not rendered by default.

0 comments on commit b2a428a

Please sign in to comment.