File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
examples/cloudflare-wasm-worker Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- # Example: Cloudflare Worker Using ` async-openai `
1
+ # Example: Cloudflare Worker Using ` async-openai-wasm `
2
2
3
3
A template for kick starting a Cloudflare worker project using [ ` workers-rs ` ] ( https://github.com/cloudflare/workers-rs ) .
4
4
@@ -7,14 +7,11 @@ Cloudflare's [edge infrastructure](https://www.cloudflare.com/network/).
7
7
8
8
## Setup
9
9
10
- 1 . Move this directory out of ` async-openai/examples ` and out of ` async-openai `
11
- * Since the ` wasm-bindgen ` dependency conflicts with ` examples/openai-web-app ` , we need to move this directory out
12
- of ` async-openai/examples ` and out of ` async-openai ` to avoid conflicts.
13
- 2 . Run ` npm install ` to install ` wrangler ` .
14
- 3 . Make sure you have ` wasm32-unknown-unknown ` target installed. You can install it by
10
+ 1 . Run ` npm install ` to install ` wrangler ` .
11
+ 2 . Make sure you have ` wasm32-unknown-unknown ` target installed. You can install it by
15
12
running ` rustup target add wasm32-unknown-unknown ` .
16
- 4 . IMPORTANT: replace the values of ` AUTH ` , ` OPENAI_API_KEY ` with your own values in [ code] ( ./src/lib.rs ) .
17
- 5 . Run ` npx wrangler dev ` to start a local server for testing!
13
+ 3 . IMPORTANT: replace the values of ` AUTH ` , ` OPENAI_API_KEY ` with your own values in [ code] ( ./src/lib.rs ) .
14
+ 4 . Run ` npx wrangler dev ` to start a local server for testing!
18
15
19
16
Please do NOT simply deploy this demo to production without adding a secure secret store and appropriate authentication.
20
17
You can’t perform that action at this time.
0 commit comments