Skip to content

Commit 44764fc

Browse files
committed
fix: removed un genralized code
1 parent 21f8399 commit 44764fc

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/client.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import crud from '@cocreate/crud-client'
22
import Actions from '@cocreate/actions'
33

4-
// todo: apikey from orgainization'
5-
// const apifromCrud = await crud.send({
6-
// array: 'organizations',
7-
// object: { _id: '' },
8-
// })
9-
10-
// console.log('test', apifromCrud)
11-
const apiKey = localStorage.getItem('openAiKey');
124
const apiUrl = 'https://api.openai.com/v1/chat/completions';
135
const model = 'gpt-4-1106-preview'
146
const max_tokens = 3300;
@@ -91,9 +83,7 @@ async function send(conversation) {
9183
// TODO: check if careers exist else create
9284
let responseElement = document.querySelector('[openai="response"]')
9385
if (responseElement) {
94-
let preValue = responseElement.getValue()
95-
let newValue = [...content, ...preValue]
96-
responseElement.setValue(newValue)
86+
responseElement.setValue(content)
9787
}
9888
}
9989

0 commit comments

Comments
 (0)