mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
feat: prompt call tool support reason;perf: ai proxy doc (#3982)
* update schema * perf: ai proxy doc * feat: prompt call tool support reason
This commit is contained in:
@@ -139,14 +139,14 @@ const ChannelTable = ({ Tab }: { Tab: React.ReactNode }) => {
|
||||
</Td>
|
||||
<Td>
|
||||
<MyNumberInput
|
||||
defaultValue={item.priority || 0}
|
||||
min={0}
|
||||
defaultValue={item.priority || 1}
|
||||
min={1}
|
||||
max={100}
|
||||
h={'32px'}
|
||||
w={'80px'}
|
||||
onBlur={(e) => {
|
||||
const val = (() => {
|
||||
if (!e) return 0;
|
||||
if (!e) return 1;
|
||||
return e;
|
||||
})();
|
||||
updateChannel({
|
||||
|
@@ -130,7 +130,8 @@ export const postCreateChannel = (data: CreateChannelProps) =>
|
||||
base_url: data.base_url,
|
||||
models: data.models,
|
||||
model_mapping: data.model_mapping,
|
||||
key: data.key
|
||||
key: data.key,
|
||||
priority: 1
|
||||
});
|
||||
|
||||
export const putChannelStatus = (id: number, status: ChannelStatusEnum) =>
|
||||
@@ -146,7 +147,7 @@ export const putChannel = (data: ChannelInfoType) =>
|
||||
model_mapping: data.model_mapping,
|
||||
key: data.key,
|
||||
status: data.status,
|
||||
priority: data.priority
|
||||
priority: data.priority ? Math.max(data.priority, 1) : undefined
|
||||
});
|
||||
|
||||
export const deleteChannel = (id: number) => DELETE(`/channel/${id}`);
|
||||
|
Reference in New Issue
Block a user