fix: choose provider correctly (#7081)

fix no provider error in caption generate action
This commit is contained in:
darkskygit
2024-05-27 09:57:39 +00:00
parent 50dcce891b
commit 5ba9e2e9b1
4 changed files with 57 additions and 23 deletions
+1 -1
View File
@@ -455,7 +455,7 @@ model AiPrompt {
// an mark identifying which view to use to display the session
// it is only used in the frontend and does not affect the backend
action String? @db.VarChar
model String? @db.VarChar
model String @db.VarChar
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(6)
messages AiPromptMessage[]