feat: add sub2api compatibility
This commit is contained in:
@@ -158,6 +158,7 @@ export async function deleteAdminAsset(token: string, id: string) {
|
||||
|
||||
export type AdminModelChannel = {
|
||||
protocol: "openai";
|
||||
compatibility: "openai" | "sub2api";
|
||||
name: string;
|
||||
baseUrl: string;
|
||||
apiKey: string;
|
||||
@@ -165,6 +166,9 @@ export type AdminModelChannel = {
|
||||
weight: number;
|
||||
enabled: boolean;
|
||||
remark: string;
|
||||
requestOptions: {
|
||||
imageResponseFormat: "b64_json" | "url";
|
||||
};
|
||||
};
|
||||
|
||||
export type AdminPublicModelChannelSettings = {
|
||||
|
||||
Reference in New Issue
Block a user