Skip to content

Commit

Permalink
Fix a bug where i18n no longer works
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 24, 2024
1 parent d9843a4 commit 3ba1134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from openai.lib.azure import AzureOpenAI
from slack_bolt import BoltContext

from .openai_constants import GPT_3_5_TURBO_0613_MODEL
from .openai_constants import GPT_4O_MINI_MODEL

# All the supported languages for Slack app as of March 2023
_locale_to_lang = {
Expand Down Expand Up @@ -57,7 +57,7 @@ def translate(*, openai_api_key: Optional[str], context: BoltContext, text: str)
base_url=context.get("OPENAI_API_BASE"),
)
response = client.chat.completions.create(
model=GPT_3_5_TURBO_0613_MODEL,
model=GPT_4O_MINI_MODEL,
messages=[
{
"role": "system",
Expand Down

0 comments on commit 3ba1134

Please sign in to comment.