mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 13:13:41 +08:00
feat: support aws bedrockruntime claude3
closes #622, closes #749, closes #1300
This commit is contained in:
@@ -91,6 +91,11 @@ func chooseDB(envName string) (*gorm.DB, error) {
|
||||
|
||||
func InitDB(envName string) (db *gorm.DB, err error) {
|
||||
db, err = chooseDB(envName)
|
||||
|
||||
if config.DebugEnabled {
|
||||
db = db.Debug()
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
if config.DebugSQLEnabled {
|
||||
db = db.Debug()
|
||||
|
||||
Reference in New Issue
Block a user