Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fallback 3.5 (#15187)

Danny Xu4633d274b496
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 69b29298fa..db006eb27d 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -1622,6 +1622,9 @@ func getOpenAIResponse(ctx context.Context, messages []openai.ChatCompletionMess
var result v1pb.AdviseIndexResponse
successful := false
var retErr error
+ if model == "" {
+ model = openai.GPT3Dot5Turbo
+ }
// Retry 5 times if failed.
for i := 0; i < 5; i++ {
cfg := openai.DefaultConfig(key)