model = new GoogleTextGenerationModel($metadata, $providerMetadata); } /** * {@inheritDoc} * * @since 1.1.0 */ public function metadata(): ModelMetadata { return $this->model->metadata(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function providerMetadata(): ProviderMetadata { return $this->model->providerMetadata(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function setConfig(ModelConfig $config): void { $this->model->setConfig($config); } /** * {@inheritDoc} * * @since 1.1.0 */ public function getConfig(): ModelConfig { return $this->model->getConfig(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function setRequestOptions(RequestOptions $requestOptions): void { $this->model->setRequestOptions($requestOptions); } /** * {@inheritDoc} * * @since 1.1.0 */ public function getRequestOptions(): ?RequestOptions { return $this->model->getRequestOptions(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function setHttpTransporter(HttpTransporterInterface $httpTransporter): void { $this->model->setHttpTransporter($httpTransporter); } /** * {@inheritDoc} * * @since 1.1.0 */ public function getHttpTransporter(): HttpTransporterInterface { return $this->model->getHttpTransporter(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function setRequestAuthentication(RequestAuthenticationInterface $requestAuthentication): void { $this->model->setRequestAuthentication($requestAuthentication); } /** * {@inheritDoc} * * @since 1.1.0 */ public function getRequestAuthentication(): RequestAuthenticationInterface { return $this->model->getRequestAuthentication(); } /** * {@inheritDoc} * * @since 1.1.0 */ public function generateTextResult(array $prompt): GenerativeAiResult { return $this->model->generateTextResult($prompt); } /** * {@inheritDoc} * * @since 1.1.0 */ public function generateImageResult(array $prompt): GenerativeAiResult { return $this->model->generateTextResult($prompt); } }