mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-04 00:42:14 +00:00
fix(groups): merge main and resolve model allowlist conflicts
This commit is contained in:
252 files changed
+11371
-1598
No files matched your search
@@ -6,6 +6,7 @@
|
||||
import { apiClient } from '../client'
|
||||
import type {
|
||||
Account,
|
||||
AccountListItem,
|
||||
CreateAccountRequest,
|
||||
UpdateAccountRequest,
|
||||
PaginatedResponse,
|
||||
@@ -53,8 +54,8 @@ export async function list(
|
||||
options?: {
|
||||
signal?: AbortSignal
|
||||
}
|
||||
): Promise<PaginatedResponse<Account>> {
|
||||
const { data } = await apiClient.get<PaginatedResponse<Account>>('/admin/accounts', {
|
||||
): Promise<PaginatedResponse<AccountListItem>> {
|
||||
const { data } = await apiClient.get<PaginatedResponse<AccountListItem>>('/admin/accounts', {
|
||||
params: {
|
||||
page,
|
||||
page_size: pageSize,
|
||||
@@ -68,7 +69,7 @@ export async function list(
|
||||
export interface AccountListWithEtagResult {
|
||||
notModified: boolean
|
||||
etag: string | null
|
||||
data: PaginatedResponse<Account> | null
|
||||
data: PaginatedResponse<AccountListItem> | null
|
||||
}
|
||||
|
||||
export interface AccountUpstreamBillingRatesWithEtagResult {
|
||||
@@ -135,7 +136,7 @@ export async function listWithEtag(
|
||||
headers['If-None-Match'] = options.etag
|
||||
}
|
||||
|
||||
const response = await apiClient.get<PaginatedResponse<Account>>('/admin/accounts', {
|
||||
const response = await apiClient.get<PaginatedResponse<AccountListItem>>('/admin/accounts', {
|
||||
params: {
|
||||
page,
|
||||
page_size: pageSize,
|
||||
|
||||
@@ -50,6 +50,7 @@ export interface ChannelModelPricing {
|
||||
cache_read_price: number | null
|
||||
fast_multiplier?: number | null
|
||||
flex_multiplier?: number | null
|
||||
max_reasoning_effort_multiplier?: number | null
|
||||
image_input_price: number | null
|
||||
image_output_price: number | null
|
||||
per_request_price: number | null
|
||||
@@ -179,6 +180,7 @@ export interface ModelDefaultPricing {
|
||||
cache_read_price?: number
|
||||
image_input_price?: number
|
||||
image_output_price?: number
|
||||
max_reasoning_effort_multiplier?: number | null
|
||||
}
|
||||
|
||||
export async function getModelDefaultPricing(model: string): Promise<ModelDefaultPricing> {
|
||||
|
||||
@@ -1429,7 +1429,7 @@ export async function updateRectifierSettings(
|
||||
* Matches backend dto.OpenAIFastPolicyRule.
|
||||
*/
|
||||
export interface OpenAIFastPolicyRule {
|
||||
service_tier: "all" | "priority" | "flex";
|
||||
service_tier: "all" | "priority" | "flex" | "ultrafast";
|
||||
action: "pass" | "filter" | "block" | "force_priority";
|
||||
scope: "all" | "oauth" | "apikey" | "bedrock";
|
||||
user_ids?: number[];
|
||||
|
||||
@@ -41,6 +41,7 @@ export interface UserSupportedModelPricing {
|
||||
cache_write_price: number | null
|
||||
cache_write_1h_price?: number | null
|
||||
cache_read_price: number | null
|
||||
max_reasoning_effort_multiplier?: number | null
|
||||
image_input_price: number | null
|
||||
image_output_price: number | null
|
||||
per_request_price: number | null
|
||||
|
||||
Reference in new issue
Block a user