Skip to content

Commit 8449f5c

Browse files
committed
adjusts readme
1 parent 94163f7 commit 8449f5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Alchemy Worker
22

3-
Alchemy Worker is a Cloudflare Worker that performs string parsing and generates queries to inject personality and a desired prompt into GPT-3. This can be used to create more natural and engaging chatbot conversations.
3+
Alchemy Worker is a Cloudflare Worker that performs string parsing and generates queries to inject personality and a desired prompt into GPT-4 prompts. This can be used to create more natural and engaging chatbot conversations.
44

55
## Usage
66

@@ -62,8 +62,10 @@ Example js usage:
6262
});
6363
if (response.ok) {
6464
const data = await response.json();
65-
console.log("worker response", data);
66-
props.setMessages([...props.messages, data]);
65+
if(data?.model === "gpt-4-0314"){
66+
let formattedMessage = 'Somename: ' + data.choices[0].message.content;
67+
props.setMessages([...props.messages, inputMessageLog, formattedMessage]);
68+
}
6769
}
6870
```
6971

0 commit comments

Comments
 (0)