MingruiZhang commited on
Commit
8449c08
·
1 Parent(s): 36c5999
Files changed (1) hide show
  1. app/api/vision-agent/route.ts +4 -4
app/api/vision-agent/route.ts CHANGED
@@ -91,14 +91,14 @@ export const POST = withLogging(
91
  formData.append('image', mediaUrl);
92
 
93
  const fetchResponse = await fetch(
94
- // `https://api.dev.landing.ai/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
95
- `https://api.landing.ai/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
96
  // `http://localhost:5001/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
97
  {
98
  method: 'POST',
99
  headers: {
100
- // apikey: 'land_sk_DKeoYtaZZrYqJ9TMMiXe4BIQgJcZ0s3XAoB0JT3jv73FFqnr6k', // dev
101
- apikey: 'land_sk_nMnUf8xiJJUjyw1l5QaIJJ4ZyrvPthzVmPAIG7TtJY7F9CW6lu', // prod
102
  },
103
  body: formData,
104
  },
 
91
  formData.append('image', mediaUrl);
92
 
93
  const fetchResponse = await fetch(
94
+ `https://api.dev.landing.ai/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
95
+ // `https://api.landing.ai/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
96
  // `http://localhost:5001/v1/agent/chat?agent_class=vision_agent&self_reflection=false`,
97
  {
98
  method: 'POST',
99
  headers: {
100
+ apikey: 'land_sk_DKeoYtaZZrYqJ9TMMiXe4BIQgJcZ0s3XAoB0JT3jv73FFqnr6k', // dev
101
+ // apikey: 'land_sk_nMnUf8xiJJUjyw1l5QaIJJ4ZyrvPthzVmPAIG7TtJY7F9CW6lu', // prod
102
  },
103
  body: formData,
104
  },