Sha256: 3050bda23bec7e3b4ea4d8857905c06b3622bde55b1992dc9c594a3180ded806

Contents?: true

Size: 709 Bytes

Versions: 11

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true

module Gitlab
  module QA
    module Component
      class AiGateway < Base
        DOCKER_IMAGE = 'registry.gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/model-gateway'
        DOCKER_IMAGE_TAG = 'latest'

        def name
          @name ||= 'ai-gateway'
        end

        def configure_environment(gitlab_hostname:)
          @environment = {
            'AIGW_GITLAB_URL' => "http://#{gitlab_hostname}",
            'AIGW_GITLAB_API_URL' => "http://#{gitlab_hostname}/api/v4",
            'AIGW_CUSTOMER_PORTAL_URL' => Runtime::Env.customer_portal_url,
            'AIGW_USE_FAKE_MODELS' => true
          }
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gitlab-qa-14.5.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.4.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.3.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.2.1 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.2.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.1.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.0.2 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.0.1 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-14.0.0 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-13.2.1 lib/gitlab/qa/component/ai_gateway.rb
gitlab-qa-13.2.0 lib/gitlab/qa/component/ai_gateway.rb