When an openapi api call occurs, send it as plain

This commit is contained in:
LL
2023-05-29 03:19:53 +09:00
parent fa0e8ba138
commit 2b1c5ccac4

View File

@@ -366,7 +366,7 @@ export async function loadData() {
}
}
const knownHostes = ["localhost","172.0.0.1"]
const knownHostes = ["localhost","172.0.0.1","api.openai.com"]
export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:string]:string}, rawResponse?:boolean, method?:"POST"|"GET"}) {
try {