service = new OpenAPIPrompt(); } /** * A basic feature test example. */ public function test_can_respond(): void { try { $response = $this->service->generate(config('llm.models.chat.name'), 'Say "hello world" without any additional text.'); dump("LLMProviderTest response: " . $response); $this->assertNotEmpty($response, "LLMProvider returned an empty response."); $this->assertStringContainsStringIgnoringCase("hello", $response, "LLMProvider response does not contain expected content."); } catch (\Exception $e) { $this->fail("Exception thrown while calling LLMProvider: " . $e->getMessage()); return; } } }