I cant see them on my requests page and when i enable dedicated domains on gateway fallback, CF return error 522
This one works;
headers.set(
"Helicone-Fallbacks",
JSON.stringify([
{
"target-url": "https://api.openai.com",
headers: {
Authorization:
"Bearer sk-asd",
},
onCodes: [{ from: 400, to: 500 }],
},
{
"target-url": "https://api.together.xyz",
headers: {
Authorization:
"Bearer asd",
"Content-Type": "application/json",
},
onCodes: [401, 403],
bodyKeyOverride: {
model: "mistralai/Mixtral-8x22B-Instruct-v0.1",
},
},
])
Not this one;
headers.set(
"Helicone-Fallbacks",
JSON.stringify([
{
"target-url": "https://oai.hconeai.com",
headers: {
Authorization:
"Bearer sk-asd",
},
onCodes: [{ from: 400, to: 500 }],
},
{
"target-url": "https://together.hconeai.com",
headers: {
Authorization:
"Bearer asd",
"Content-Type": "application/json",
},
onCodes: [401, 403],
bodyKeyOverride: {
model: "mistralai/Mixtral-8x22B-Instruct-v0.1",
},
},
])
);
Return is
error code: 522