Skip to content

Commit

Permalink
fix(datasource): Fix datasource resource error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc committed Mar 4, 2025
1 parent 948a93b commit 6acfb16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dbgpt-core/src/dbgpt/agent/resource/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(
dialect: Optional[str] = None,
executor: Optional[Executor] = None,
prompt_template: str = _DEFAULT_PROMPT_TEMPLATE,
**kwargs,
):
"""Initialize the DB resource."""
self._name = name
Expand Down
2 changes: 1 addition & 1 deletion packages/dbgpt-core/src/dbgpt/core/interface/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _generate_key_from_password(
algorithm=hashes.SHA256(),
length=32,
salt=salt,
iterations=100000,
iterations=800000,
)
key = base64.urlsafe_b64encode(kdf.derive(password))
return key, salt
Expand Down

0 comments on commit 6acfb16

Please sign in to comment.