def get_generation_url(self) -> str:
"""Get generation URL."""
engine = getattr(self, "engine")
deployment_name = AZURE_DEPLOYMENT_NAME_MAPPING.get(engine, engine)
return (
self.host
+ "/openai/deployments/"
+ deployment_name
+ "/chat/completions?api-version=2023-05-15"
)
The api-version is hard coded as 2023-05-15. Please make it configureable as a parameter or os enviroment.
The api-version is hard coded as
2023-05-15. Please make it configureable as a parameter or os enviroment.