addMessage( 'You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.', 'system' ); it('should get a new conversation', function () use ($chatGPT) { $return = $chatGPT->ask('Hello, how are you?'); foreach ($return as $answer) { $this->assertArrayHasKey('answer', $answer); } })->group('working'); it('should get a answer contact the context', function () use ($chatGPT) { $chatGPT->ask('Hello, how are you?'); $return = $chatGPT->ask('What did I ask you just now?'); foreach ($return as $answer) { $this->assertArrayHasKey('answer', $answer); $this->assertStringContainsString('Hello, how are you?', $answer['answer']); } })->group('working');