sendRequest('/chat/completions', [ 'model' => 'o3-mini', 'messages' => $messages, 'reasoning_effort' => 'low', ]); return $response->toArray(); } public function sendRequest(string $endpoint, array $data): ResponseInterface { return $this->httpClient->request('POST', "{$this->apiUrl}{$endpoint}", [ 'headers' => [ 'Authorization' => "Bearer {$this->apiKey}", 'Content-Type' => 'application/json', ], 'json' => $data, ]); } }