(t *testing.T)
| 1053 | } |
| 1054 | |
| 1055 | func TestChat_NilFilesOmitted(t *testing.T) { |
| 1056 | t.Parallel() |
| 1057 | |
| 1058 | chat := database.Chat{ |
| 1059 | ID: uuid.New(), |
| 1060 | OwnerID: uuid.New(), |
| 1061 | LastModelConfigID: uuid.New(), |
| 1062 | Title: "no files", |
| 1063 | Status: database.ChatStatusWaiting, |
| 1064 | CreatedAt: dbtime.Now(), |
| 1065 | UpdatedAt: dbtime.Now(), |
| 1066 | } |
| 1067 | |
| 1068 | result := db2sdk.Chat(chat, nil, nil) |
| 1069 | require.Empty(t, result.Files) |
| 1070 | } |
| 1071 | |
| 1072 | func TestChat_LastErrorFallback(t *testing.T) { |
| 1073 | t.Parallel() |