Skip to content

Commit 6c7af6a

Browse files
committed
update example README
1 parent b5ea4b2 commit 6c7af6a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

examples/cloudflare-wasm-worker/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Example: Cloudflare Worker Using `async-openai`
1+
# Example: Cloudflare Worker Using `async-openai-wasm`
22

33
A template for kick starting a Cloudflare worker project using [`workers-rs`](https://github.com/cloudflare/workers-rs).
44

@@ -7,14 +7,11 @@ Cloudflare's [edge infrastructure](https://www.cloudflare.com/network/).
77

88
## Setup
99

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
1512
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!
1815

1916
Please do NOT simply deploy this demo to production without adding a secure secret store and appropriate authentication.
2017

0 commit comments

Comments
 (0)