Skip to content

Commit 97f76df

Browse files
authored
Update workersai.md
1 parent 0ef47bf commit 97f76df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/integrations/workersai.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ This integration empowers developers to:
2828

2929
This use case demonstrates how to use Statsig experiments to test different prompts and AI models within your Cloudflare Worker. For the sake of this example, we have 4 groups in our experiment. A control, with our default prompt and llama model, and then each possible variant switching to a different prompt and/or model (deepseek, in this case).
3030

31-
This use case demonstrates how to use Statsig experiments to test different prompts and AI models within your Cloudflare Worker. For the sake of this example, we have 4 groups in our experiment. A control, with our default prompt and llama model, and then each posible variant switching to a different prompt and/or model (deepseek, in this case).
32-
3331
#### Sample Experiment Setup in Statsig Console
3432

3533
![prompt and model experiment](https://github.com/user-attachments/assets/e5ed3e92-60af-4dc6-95a6-0f99eeae5152)
@@ -86,7 +84,7 @@ function logUsageToStatsig(user: StatsigUser, model: string, response: any, aiIn
8684
ai_inference_ms: aiInferenceMs,
8785
};
8886

89-
Statsig.logEvent(user, "cf_ai", model, metadata);
87+
Statsig.logEvent(user, "cloudflare_ai", model, metadata);
9088
}
9189

9290
/**

0 commit comments

Comments
 (0)