You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Alchemy Worker
2
2
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.
4
4
5
5
## Usage
6
6
@@ -62,8 +62,10 @@ Example js usage:
62
62
});
63
63
if (response.ok) {
64
64
constdata=awaitresponse.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;
0 commit comments