Skip to content

Commit 6b1c327

Browse files
authored
vectorize: fix preset/model property (#4041)
* vectorize: model -> preset to match the server * vectorize: add changeset
1 parent 913c00b commit 6b1c327

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fresh-poems-pump.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Fixed a bug in Vectorize that send preset configurations with the wrong key. This was patched on the server-side to work around this for users in the meantime.

packages/wrangler/src/vectorize/create.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function handler(
6969

7070
let indexConfig;
7171
if (args.preset) {
72-
indexConfig = { model: args.preset as VectorizePreset };
72+
indexConfig = { preset: args.preset as VectorizePreset };
7373
logger.log(
7474
`Configuring index based for the embedding model ${args.preset}.`
7575
);

0 commit comments

Comments
 (0)