Skip to content

Please do not hard code the api-version in the AzureChatClient #122

@whitewum

Description

@whitewum
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions