in aidial_adapter_openai/utils/parsers.py [0:0]
def parse(self, endpoint: str) -> AzureOpenAIEndpoint | OpenAIEndpoint:
if result := _parse_endpoint(self.name, endpoint):
return result
raise InvalidRequestError("Invalid upstream endpoint format")