Skip to content

Commit

Permalink
Update chatgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
popcion authored Dec 14, 2024
1 parent 7e7b234 commit 99307e0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions manga_translator/translators/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,12 @@ class GPT35TurboTranslator(GPT3Translator):

)
_CHAT_SAMPLE = [
(

(
'<|1|>恥ずかしい… 目立ちたくない… 私が消えたい…\n'
'<|2|>きみ… 大丈夫⁉\n'
'<|3|>なんだこいつ 空気読めて ないのか…?'
),
(

(
'<|1|>好尴尬…我不想引人注目…我想消失…\n'
'<|2|>你…没事吧⁉\n'
'<|3|>这家伙怎么看不懂气氛的…?'
Expand Down Expand Up @@ -358,7 +356,7 @@ async def _request_translation(self, to_lang: str, prompt: str) -> str:

try:
response = await self.client.chat.completions.create(
model='claude-3-5-sonnet-20240620',
model='gpt-4o-2024-08-06',
messages=messages,
max_tokens=self._MAX_TOKENS // 2,
temperature=self.temperature,
Expand Down

0 comments on commit 99307e0

Please sign in to comment.