Skip to content

Commit

Permalink
Add settings to embed models (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenkoxx authored Nov 11, 2024
1 parent b2234ad commit 386354c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/models/new/embed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const EmbedModelColumn = {
CreatedAt: 'createdAt',
UpdatedBy: 'updatedBy',
UpdatedAt: 'updatedAt',
Settings: 'settings',
} as const;

export class EmbedModel extends Model {
Expand All @@ -36,4 +37,5 @@ export class EmbedModel extends Model {
[EmbedModelColumn.CreatedAt]!: string;
[EmbedModelColumn.UpdatedBy]!: string;
[EmbedModelColumn.UpdatedAt]!: string;
[EmbedModelColumn.Settings]!: Record<string, unknown>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const selectedEmbedColumns = [
EmbedModelColumn.CreatedAt,
EmbedModelColumn.UpdatedBy,
EmbedModelColumn.UpdatedAt,
EmbedModelColumn.Settings,
] as const;

const selectedEmbeddingSecretsColumns = [EmbeddingSecretModelColumn.PublicKey] as const;
Expand Down

0 comments on commit 386354c

Please sign in to comment.