Skip to content

Commit aeed30c

Browse files
committed
Update dependencies app
1 parent 840952c commit aeed30c

File tree

5 files changed

+60
-48
lines changed

5 files changed

+60
-48
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
all: install build
22

33
install:
4+
npm install turbo --global
45
npm install
56

67
build:

apps/colors/README.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Deployment
22

3-
```
3+
```bash
44
npm install
5-
npm run dev
6-
```
7-
8-
```
9-
npm run deploy
5+
make dev
6+
make deploy
107
```
118

129
# Sercrets
@@ -25,7 +22,7 @@ Use the wrangler CLI to deploy the worker.
2522

2623
```bash
2724

28-
npm install -g @cloudflare/wrangler
25+
npm install -g wrangler
2926

3027
wrangler login
3128

apps/colors/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
},
1212
"devDependencies": {
1313
"@cloudflare/workers-types": "^4.20230914.0",
14-
"wrangler": "^3.11.0"
14+
"wrangler": "^3.12.0"
1515
}
1616
}

apps/colors/src/entityColors.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export async function callGenerateColors(
7272
// Function calling: https://openai.com/blog/function-calling-and-other-api-updates
7373
const stream = await openai.chat.completions.create({
7474
messages: getColorMessages(number.toString(), prompt),
75-
model: "gpt-3.5-turbo", // OR "gpt-4"
75+
// model: "gpt-3.5-turbo", // OR "gpt-4"
76+
model: "gpt-4",
7677
stream: true, // ENABLE STREAMING - Server Sent Event (SSE)
7778
temperature: 1.1,
7879
functions: [getColorListFunction()],

package-lock.json

+52-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)