* @throws ApiException * @throws DomainException */ public function generateCodeCompletion( Model $model, string $prompt, string $language, array $params = [], ): Generator; }