chore: v1 to v2
This commit is contained in:
@@ -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
|
||||
})}`,
|
||||
|
||||
Reference in New Issue
Block a user