Skip to content

Custom predict path for Async API #2434

@imshashank

Description

@imshashank

Is there a way to change the "default" path "/" to add a prefix like "/predict" for AsyncAPI?

- name: text-generator
  kind: AsyncAPI
  pod:
    port: 8080
    - http:
        paths:
        - path: /predict
          pathType: Prefix
    containers:
    - name: api
      image: quay.io/cortexlabs-test/async-text-generator-cpu:latest
      compute:
        cpu: 1
        mem: 2.5Gi

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions