mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-06-21 09:18:34 +00:00
Compare commits
1 Commits
d16667a2a9
...
92e97ab72d
Author | SHA1 | Date | |
---|---|---|---|
92e97ab72d |
@ -563,16 +563,12 @@ const Page = () => {
|
|||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Model name"
|
placeholder="Model name"
|
||||||
value={config.customOpenaiModelName}
|
defaultValue={config.customOpenaiModelName}
|
||||||
isSaving={savingStates['customOpenaiModelName']}
|
onChange={(e) =>
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
setConfig({
|
||||||
setConfig((prev) => ({
|
...config,
|
||||||
...prev!,
|
|
||||||
customOpenaiModelName: e.target.value,
|
customOpenaiModelName: e.target.value,
|
||||||
}));
|
})
|
||||||
}}
|
|
||||||
onSave={(value) =>
|
|
||||||
saveConfig('customOpenaiModelName', value)
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -583,16 +579,12 @@ const Page = () => {
|
|||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Custom OpenAI API Key"
|
placeholder="Custom OpenAI API Key"
|
||||||
value={config.customOpenaiApiKey}
|
defaultValue={config.customOpenaiApiKey}
|
||||||
isSaving={savingStates['customOpenaiApiKey']}
|
onChange={(e) =>
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
setConfig({
|
||||||
setConfig((prev) => ({
|
...config,
|
||||||
...prev!,
|
|
||||||
customOpenaiApiKey: e.target.value,
|
customOpenaiApiKey: e.target.value,
|
||||||
}));
|
})
|
||||||
}}
|
|
||||||
onSave={(value) =>
|
|
||||||
saveConfig('customOpenaiApiKey', value)
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -603,16 +595,12 @@ const Page = () => {
|
|||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Custom OpenAI Base URL"
|
placeholder="Custom OpenAI Base URL"
|
||||||
value={config.customOpenaiApiUrl}
|
defaultValue={config.customOpenaiApiUrl}
|
||||||
isSaving={savingStates['customOpenaiApiUrl']}
|
onChange={(e) =>
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
setConfig({
|
||||||
setConfig((prev) => ({
|
...config,
|
||||||
...prev!,
|
|
||||||
customOpenaiApiUrl: e.target.value,
|
customOpenaiApiUrl: e.target.value,
|
||||||
}));
|
})
|
||||||
}}
|
|
||||||
onSave={(value) =>
|
|
||||||
saveConfig('customOpenaiApiUrl', value)
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user