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
+1 -2
View File
@@ -4,7 +4,6 @@ import { throttle } from 'lodash';
import qs from 'query-string';
import { useEffect, useRef } from 'react';
const GPUSTACK_API = GPUSTACK_API_BASE_URL;
export interface HandlerOptions {
isComplete?: boolean | null;
percent?: number;
@@ -170,7 +169,7 @@ const useSetChunkFetch = () => {
axiosToken.current = new AbortController();
try {
const response = await fetch(
`${GPUSTACK_API}${url}?${qs.stringify({
`${GPUSTACK_API_BASE_URL}${url}?${qs.stringify({
...params,
watch: watch === undefined ? true : watch
})}`,