You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
# This code is for v1 of the openai package: pypi.org/project/openaifromopenaiimportOpenAIclient=OpenAI()
response=client.chat.completions.create(
model="gpt-4",
messages=[],
temperature=0,
max_tokens=256
)
The text was updated successfully, but these errors were encountered:
前一兩個月還可以使用,今天突然不能使用了。
顯示一連串類似這樣的信息。
Translating paragraphs: 78% 143/183 [03:44<00:41, 1.04s/paragraph]An error occurred during translation: RetryError[<Future at 0x7b3a1c73b670 state=finished raised AttributeError>]
我上網也找不到原因,
我猜想會是跟 openai 版本的更新有關係嗎?
0.28.1 升級到 1.1.1 然後
AttributeError: module ‘openai’ has no attribute ‘ChatCompletion’"
python 3.10.12
請問這個有幫助嗎?
https://platform.openai.com/examples/default-translation
The text was updated successfully, but these errors were encountered: