cortexlabs / cortex

Production infrastructure for machine learning at scale
https://cortexlabs.com/
Apache License 2.0
8.02k stars 607 forks source link

Custom predict path for Async API #2434

Open imshashank opened 2 years ago

imshashank commented 2 years ago

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
deliahu commented 2 years ago

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