multithread implementation

This commit is contained in:
YasinOnm08 2024-09-19 15:56:26 +02:00
parent fe2bfa60ce
commit 3f8841a630
5 changed files with 99 additions and 40 deletions

View file

@ -40,7 +40,6 @@ const InputBackend: React.FC = () => {
if (chatResponse && chatResponse.choices && chatResponse.choices.length > 0) {
if (chatResponse.choices[0].message.content) {
addMessage('AI: ' + chatResponse.choices[0].message.content);
console.log(messages)
}
} else {
console.error('Error: Unexpected API response:', chatResponse);