File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11import crud from '@cocreate/crud-client'
22import 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' ) ;
124const apiUrl = 'https://api.openai.com/v1/chat/completions' ;
135const model = 'gpt-4-1106-preview'
146const 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
You can’t perform that action at this time.
0 commit comments