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:
@@ -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