Skip to content

Commit

Permalink
Merge pull request #10 from n4ze3m/next
Browse files Browse the repository at this point in the history
file upload model fix
  • Loading branch information
n4ze3m authored Jun 9, 2023
2 parents a909dc3 + 6847f40 commit 2b31b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui/src/routes/new/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function NewRoot() {
const formData = new FormData();
formData.append("file", values.file[0].originFileObj);

const response = await api.post("/bot/pdf?embedding=" + values.embedding, formData, {
const response = await api.post(`/bot/pdf?embedding=${values.embedding}&model=${values.model}`, formData, {
headers: {
"Content-Type": "multipart/form-data",
},
Expand Down

0 comments on commit 2b31b45

Please sign in to comment.