Skip to content

Add AZURE_OPENAI_API_VERSION to environment variables for translation #945

@Mokason

Description

@Mokason

Is your feature request related to a problem? Please describe.
Outdated code, result needles extra tokens racking up the cost for translation.

Describe the solution you'd like
Add AZURE_OPENAI_API_VERSION to check if it's equal to version "2024-10-21" or above and skip extra complexity.
The changes ensure that the latest GPT version can handle multilingual content without requiring translation fields,
so any version equal or above version "2024-10-21" can skip those fields.

Describe alternatives you've considered
Removing translation fields and its logic in general.

Additional context
Already done it here, just need to make a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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