Skip to content

Commit

Permalink
vectorize: fix preset/model property (#4041)
Browse files Browse the repository at this point in the history
* vectorize: model -> preset to match the server

* vectorize: add changeset
  • Loading branch information
elithrar authored Sep 28, 2023
1 parent 913c00b commit 6b1c327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fresh-poems-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

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.
2 changes: 1 addition & 1 deletion packages/wrangler/src/vectorize/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function handler(

let indexConfig;
if (args.preset) {
indexConfig = { model: args.preset as VectorizePreset };
indexConfig = { preset: args.preset as VectorizePreset };
logger.log(
`Configuring index based for the embedding model ${args.preset}.`
);
Expand Down

0 comments on commit 6b1c327

Please sign in to comment.