Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Merge pull request #2382 from glconti/main

Amruth Pillaiac48ad78dba9
diff --cc apps/client/src/pages/dashboard/settings/_sections/openai.tsx
index c60e177a2,230789ad3..434e7783f
--- a/apps/client/src/pages/dashboard/settings/_sections/openai.tsx
+++ b/apps/client/src/pages/dashboard/settings/_sections/openai.tsx
@@@ -170,9 -221,47 +221,47 @@@ export const OpenAISettings = () =>
</FormItem>
)}
/>
+ <FormField
+ name="isAzure"
+ control={form.control}
+ render={({ field }) => (
+ <FormItem className="flex flex-row items-center space-x-3 space-y-0">
+ <FormControl>
+ <Checkbox
+ checked={!!field.value}
+ onCheckedChange={(value) => {
+ field.onChange(Boolean(value));
+ }}
+ />
+ </FormControl>
+ <div className="space-y-1 leading-none">
+ <FormLabel>{t`Use Azure OpenAI`}</FormLabel>
+ </div>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <FormField
+ name="azureApiVersion"
+ control={form.control}
+ render={({ field }) => (
+ <FormItem className={form.watch("isAzure") ? "" : "opacity-50"}>
+ <FormLabel>{t`Azure API Version`}</FormLabel>
+ <FormControl>
+ <Input
+ type="text"
+ placeholder={DEFAULT_AZURE_API_VERSION}
+ disabled={!form.watch("isAzure")}
+ {...field}
+ />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
<div className="flex items-center space-x-2 self-end sm:col-start-2">
<Button type="submit" disabled={!form.formState.isValid}>
- {isEnabled && <FloppyDisk className="mr-2" />}
+ {isEnabled && <FloppyDiskIcon className="mr-2" />}
{isEnabled ? t`Saved` : t`Save Locally`}
</Button>