fix: lint errors in auth-choice.apply.volcengine.ts

This commit is contained in:
michael.zhang 2026-01-28 19:14:12 +08:00
parent 8f7425fc3c
commit cc54c47940

View File

@ -15,10 +15,6 @@ type ArkModel = {
owned_by: string; owned_by: string;
}; };
type ArkModelsResponse = {
data: ArkModel[];
};
export async function applyAuthChoiceVolcengine( export async function applyAuthChoiceVolcengine(
params: ApplyAuthChoiceParams, params: ApplyAuthChoiceParams,
): Promise<ApplyAuthChoiceResult | null> { ): Promise<ApplyAuthChoiceResult | null> {
@ -213,7 +209,7 @@ export async function applyAuthChoiceVolcengine(
// Configure Provider // Configure Provider
const existingProviderOrder = nextConfig.models?.providers; const existingProviderOrder = nextConfig.models?.providers;
// We need to cast this because TypeScript might complain if we add new keys to providers if it's strictly typed // We need to cast this because TypeScript might complain if we add new keys to providers if it's strictly typed
const providers = { ...(existingProviderOrder || {}) } as any; const providers = { ...existingProviderOrder } as any;
providers.volcengine = { providers.volcengine = {
baseUrl: ARK_BASE_URL, baseUrl: ARK_BASE_URL,