cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Custom predict path for Async API

Open imshashank opened this issue 2 years ago • 1 comments

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

imshashank avatar Apr 18 '22 01:04 imshashank

This is not currently supported. I will leave this issue open as a feature request

deliahu avatar Apr 21 '22 16:04 deliahu