diff --git a/composer.json b/composer.json index 336ab1c..3640d10 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "zaikorea/zaiclient", - "version": "3.0.0", + "version": "3.0.1", "description": "Z.Ai official client SDK", "hompage": "https://www.zaikorea.org", "autoload": { diff --git a/src/Responses/EventResponse.php b/src/Responses/EventResponse.php index 5575b25..ceb6bf4 100644 --- a/src/Responses/EventResponse.php +++ b/src/Responses/EventResponse.php @@ -1,7 +1,7 @@ false]) } $url = sprintf( - $request->getBaseUrl(), $this->options['custom_endpoint'] + $request->getBaseUrl(), + $this->options['custom_endpoint'] ) . $path; try { @@ -115,7 +116,7 @@ public function sendRequest($request, $options = ['is_test' => false]) if (is_a($request, EventRequest::class)) { $response_body = json_decode($response->getBody()); - $event_response = $this->json_mapper->map($response_body, new EventLoggerResponse()); + $event_response = $this->json_mapper->map($response_body, new EventResponse()); return $event_response; }