Skip to content

add better support for overwriting endpoint#125

Merged
edwardpark97 merged 3 commits intomasterfrom
endpoint_overwrite
Jul 17, 2023
Merged

add better support for overwriting endpoint#125
edwardpark97 merged 3 commits intomasterfrom
endpoint_overwrite

Conversation

@edwardpark97
Copy link
Contributor

Feeding in your own endpoint to the Launch client didn't work very well because some of the calls go to /v1/hosted_inference and other calls go to /v1/launch and the old behavior rewrote both

@edwardpark97 edwardpark97 requested a review from phil-scale July 12, 2023 21:20
SCALE_LAUNCH_ENDPOINT = "https://api.scale.com/v1/hosted_inference"
SCALE_LAUNCH_V1_ENDPOINT = "https://api.scale.com/v1/launch"
DEFAULT_SCALE_ENDPOINT = "https://api.scale.com"
HOSTED_INFERENCE_PATH = "/v1/hosted_inference"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the spirit of the previous names, maybe let's call this SCALE_LAUNCH_V0_PATH and SCALE_LAUNCH_V1_PATH.

@edwardpark97 edwardpark97 merged commit 23c1370 into master Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants