Skip to content

Commit

Permalink
add: zhipuai method translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin-jun-xiang committed Jan 2, 2025
1 parent 6cd310f commit f703df4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


# Introduction

> [!NOTE]
> `v1`版本的翻譯器是透過 `Linux` 第三方套件實現;`v2`版本是透過生成式AI實現翻譯
Expand Down
2 changes: 1 addition & 1 deletion translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def chat_completion(query: str) -> str:
)
else:
print('Using zhipuai.')
response = async_zhipuai(query)
response = await async_zhipuai(query)
if response == '' or response is None:
raise Exception
return response
Expand Down

0 comments on commit f703df4

Please sign in to comment.