We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3a1f5 commit 2c04889Copy full SHA for 2c04889
worker/src/lib/clients/ProviderClient.ts
@@ -100,11 +100,12 @@ export async function callProvider(props: CallProps): Promise<Response> {
100
101
const mockResponseHeader = headers.get("__helicone-mock-response");
102
if (mockResponseHeader) {
103
- if (env.ENVIRONMENT === "production") {
104
- return new Response("Mock responses not allowed in production", {
105
- status: 403,
106
- });
107
- }
+ // temporarily remove for load testing
+ // if (env.ENVIRONMENT === "production") {
+ // return new Response("Mock responses not allowed in production", {
+ // status: 403,
+ // });
108
+ // }
109
110
try {
111
const mockResponseBody = JSON.parse(mockResponseHeader);
0 commit comments