chore: v1 to v2

This commit is contained in:
jialin
2025-11-20 17:31:15 +08:00
parent ea39a45f31
commit 551f04011a
12 changed files with 40 additions and 55 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import { GPUSTACK_API_BASE_URL } from '@/config/settings';
import { GPUSTACK_API_BASE_URL, OPENAI_COMPATIBLE } from '@/config/settings';
import { createFormData, errorHandler } from '@/utils/fetch-chunk-data';
import { request } from '@umijs/max';
export const OPENAI_COMPATIBLE = 'v1-openai';
export const GPUSTACK_API = GPUSTACK_API_BASE_URL;
export { GPUSTACK_API_BASE_URL, OPENAI_COMPATIBLE };
export const CHAT_API = `/${OPENAI_COMPATIBLE}/chat/completions`;