Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pycon_sprints_add_chatgpt #686

Open
wants to merge 3 commits into
base: 3.12
Choose a base branch
from
Open

Conversation

beccalzh
Copy link
Collaborator

(誤刪重發)
新增.script/google_translate/chatgpt.py

call chatgpt api
execute translator
修改.script/google_translate/main.py

add args (incl. translator, key) #選擇翻譯工具及chatgpt api金鑰輸入
add new commands for two translators

@rockleona
Copy link
Collaborator

嗨 我這邊遇到了小問題
我按照你寫的函式進行呼叫之後

python google_translate/main.py chatgpt ../howto/enum.po {api_key}

會得到下圖結果,不知道你有沒有遇到這樣的狀況,
或是我從這邊產生 key搞錯了?
image

Update pyproject.toml
@rockleona
Copy link
Collaborator

rockleona commented Nov 10, 2023

@beccalzh 不知道為什麼我沒有權限編輯 commit,所以我開了一個 PR 到你那邊了XD

  • Add a Shell Script for ChatGPT Translate
  • Update pyproject.toml

除了上一個 comment 的問題之外,我認為可以把資料夾名稱改掉(?)
因為 .scripts/google_translate 已經不單純了

@beccalzh
Copy link
Collaborator Author

@rockleona !!好 前面API產生的地方沒問題,有沒有可能是使用達到limit ?

@rockleona
Copy link
Collaborator

@rockleona !!好 前面API產生的地方沒問題,有沒有可能是使用達到limit ?

我看到後台確實是達到 call limit,儘管我根本沒有使用啊!XD
詭異!

Add Chatgpt Translate Shell Script & Update pyproject.toml
@rockleona
Copy link
Collaborator

@josix ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants