perf
This commit is contained in:
parent
cf6ca31aa4
commit
1104efaa1a
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/query",
|
||||
"version": "0.0.17",
|
||||
"version": "0.0.18",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@ -25,12 +25,12 @@
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-node-resolve": "^16.0.1",
|
||||
"@rollup/plugin-typescript": "^12.1.2",
|
||||
"rollup": "^4.36.0",
|
||||
"rollup-plugin-dts": "^6.2.0",
|
||||
"rollup": "^4.40.2",
|
||||
"rollup-plugin-dts": "^6.2.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.8.2",
|
||||
"zustand": "^5.0.3"
|
||||
"typescript": "^5.8.3",
|
||||
"zustand": "^5.0.4"
|
||||
},
|
||||
"packageManager": "yarn@1.22.22",
|
||||
"publishConfig": {
|
||||
@ -59,6 +59,6 @@
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"openai": "^4.88.0"
|
||||
"openai": "^4.98.0"
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ export const adapter = async (opts: AdapterOpts, overloadOpts?: RequestInit) =>
|
||||
if (opts?.url?.startsWith('http')) {
|
||||
url = new URL(opts.url);
|
||||
} else {
|
||||
origin = window?.location?.origin || 'http://localhost:11015';
|
||||
origin = window?.location?.origin || 'http://localhost:51015';
|
||||
url = new URL(opts.url, origin);
|
||||
}
|
||||
const isGet = method === 'GET';
|
||||
|
Loading…
x
Reference in New Issue
Block a user