Skip to content

Commit 687b7f5

Browse files
waleedlatif1claude
andcommitted
fix(knowledge): make EMBEDDING_DIMENSIONS a literal type
CreateKnowledgeBaseData.embeddingDimension is typed as the literal 1536, so EMBEDDING_DIMENSIONS needs `as const` to satisfy it after the copilot path switched to passing the constant. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 78d6af7 commit 687b7f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/knowledge/embedding-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* runtime for any model recorded on a knowledge base row.
66
*/
77

8-
export const EMBEDDING_DIMENSIONS = 1536
8+
export const EMBEDDING_DIMENSIONS = 1536 as const
99

1010
export const DEFAULT_EMBEDDING_MODEL = 'text-embedding-3-small'
1111

0 commit comments

Comments
 (0)