enzostvs HF staff commited on
Commit
b56cd07
β€’
1 Parent(s): 1acbd47

add mew log

Browse files
Files changed (1) hide show
  1. src/routes/api/generate/+server.ts +0 -2
src/routes/api/generate/+server.ts CHANGED
@@ -39,7 +39,6 @@ export async function POST({ request, cookies } : RequestEvent) {
39
  const response = await fetch(process.env.SECRET_INFERENCE_API_URL + "/models/" + generation?.model?.id, {
40
  method: "POST",
41
  headers: {
42
- Authorization: `Bearer ${process.env.SECRET_HF_TOKEN}`,
43
  'Content-Type': 'application/json',
44
  ['x-use-cache']: "0"
45
  },
@@ -57,7 +56,6 @@ export async function POST({ request, cookies } : RequestEvent) {
57
  return Buffer.from(response)
58
  })
59
  .catch((error) => {
60
- console.log({ error })
61
  return {
62
  error: error.message,
63
  }
 
39
  const response = await fetch(process.env.SECRET_INFERENCE_API_URL + "/models/" + generation?.model?.id, {
40
  method: "POST",
41
  headers: {
 
42
  'Content-Type': 'application/json',
43
  ['x-use-cache']: "0"
44
  },
 
56
  return Buffer.from(response)
57
  })
58
  .catch((error) => {
 
59
  return {
60
  error: error.message,
61
  }