mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
perf: init model (#4610)
* fix: model config undefined value * perf: init model
This commit is contained in:
@@ -356,7 +356,12 @@ export const ModelEditModal = ({
|
||||
</Td>
|
||||
<Td textAlign={'right'}>
|
||||
<Flex justifyContent={'flex-end'}>
|
||||
<MyNumberInput register={register} name="maxResponse" {...InputStyles} />
|
||||
<MyNumberInput
|
||||
min={2000}
|
||||
register={register}
|
||||
name="maxResponse"
|
||||
{...InputStyles}
|
||||
/>
|
||||
</Flex>
|
||||
</Td>
|
||||
</Tr>
|
||||
@@ -372,6 +377,7 @@ export const ModelEditModal = ({
|
||||
<MyNumberInput
|
||||
register={register}
|
||||
name="maxTemperature"
|
||||
min={0}
|
||||
step={0.1}
|
||||
{...InputStyles}
|
||||
/>
|
||||
|
@@ -79,6 +79,7 @@ const testLLMModel = async (model: LLMModelItemType, headers: Record<string, str
|
||||
);
|
||||
|
||||
const { response, isStreamResponse } = await createChatCompletion({
|
||||
modelData: model,
|
||||
body: requestBody,
|
||||
options: {
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user