Skip to content

Commit

Permalink
OpenSourceTranslator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-pawelek committed Oct 4, 2024
1 parent ec12172 commit 26eb4d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion llmtranslate/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def async_get_text_language(self, text) -> Translator.TextLanguage:
]

response = await self.client.chat.completions.create(
model=self.llm_model_name.value,
model=self.llm_model_name,
messages=messages,
response_format={"type": "json_object"} # auto is default, but we'll be explicit
)
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "llmtranslate"
version = "0.3.6"
version = "0.3.7"
description = "A Python library for language detection and translation using OpenAI's GPT-4o."
authors = ["Adam Pawelek <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 26eb4d9

Please sign in to comment.