Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pycon_sprints_add_chatgpt#686

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
beccalzh wants to merge3 commits intopython:3.12
base:3.12
Choose a base branch
Loading
frombeccalzh:script/translate

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

@rockleona
Copy link
Collaborator

rockleona commentedNov 10, 2023
edited
Loading

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

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

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

beccalzh reacted with thumbs up emojibeccalzh reacted with confused emoji

@beccalzh
Copy link
CollaboratorAuthor

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

rockleona reacted with eyes emoji

@rockleona
Copy link
Collaborator

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

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

beccalzh reacted with eyes emoji

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

@josix ping

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@beccalzh@rockleona

[8]ページ先頭

©2009-2025 Movatter.jp