Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kielbasa-elp committed Feb 19, 2024
1 parent e7b130d commit fe1c9bf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ function ApiTypesRadioGroupField({ onChange }: ApiTypesRadioGroupFieldProps) {
function ModelSelectField() {
const { organizationId } = useLoaderData<typeof loader>();
const { fieldErrors, getValues } = useFormContext();
const values = getValues();
// const values = getValues();

return (
<FormField name="embeddings.model">
<AsyncSelectField
url={`/api/organizations/${organizationId}/models/embeddings?api_type=${values.get(
"embeddings.api_type"
)}`}
url={`/api/organizations/${organizationId}/models/embeddings?api_type=openai`}
label="Model"
supportingText="The model to use for the embeddings."
errorMessage={fieldErrors["embeddings.model"]}
Expand Down

0 comments on commit fe1c9bf

Please sign in to comment.