We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a842d62 commit 24bd449Copy full SHA for 24bd449
src/client.js
@@ -1,7 +1,6 @@
1
import crud from '@cocreate/crud-client'
2
import Actions from '@cocreate/actions'
3
4
-const apiUrl = 'https://api.openai.com/v1/chat/completions';
5
const model = 'gpt-4-1106-preview'
6
const max_tokens = 3300;
7
const temperature = 0.6;
@@ -63,7 +62,7 @@ const componentsReference = {
63
62
async function send(conversation) {
64
try {
65
let data = await crud.socket.send({
66
- method: 'openai.chat',
+ method: 'openai.chat.completions.create',
67
action: 'chat',
68
chat: {
69
messages: conversation,
src/server.js
@@ -1,7 +1,5 @@
const OpenAI = require('openai')
-const name = 'openai'
-
async function send(data) {
let openai = false;
0 commit comments