feat: add sub2api compatibility

This commit is contained in:
chick
2026-06-01 23:43:53 +08:00
parent 5f59b4bed3
commit f66540a273
6 changed files with 325 additions and 9 deletions
+4
View File
@@ -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 = {