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:
Archer
2025-03-05 14:11:52 +08:00
committed by archer
parent e1aa068858
commit 3e3f2165db
23 changed files with 508 additions and 298 deletions

View File

@@ -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}`);