fix(openai): satisfy Live CI checks

This commit is contained in:
song
2026-07-25 12:51:20 +08:00
parent 988d4b577e
commit db6fbdbf29
16 changed files with 140 additions and 20 deletions
+12
View File
@@ -16,6 +16,11 @@ import type {
PaginatedResponse
} from '@/types'
export interface LiveCapability {
supported: boolean
reason?: string
}
/**
* List all groups with pagination
* @param page - Page number (default: 1)
@@ -81,6 +86,12 @@ export async function getByPlatform(platform: GroupPlatform): Promise<AdminGroup
return getAll(platform)
}
/** 获取当前 Sub2API 服务端的 Live 运行环境能力。 */
export async function getLiveCapability(): Promise<LiveCapability> {
const { data } = await apiClient.get<LiveCapability>('/admin/groups/live-capability')
return data
}
/**
* Get group by ID
* @param id - Group ID
@@ -467,6 +478,7 @@ export const groupsAPI = {
getAll,
getByPlatform,
getAllIncludingInactive,
getLiveCapability,
getById,
getModelsListCandidates,
create,