Sign In

Battle against this opponent

name: a
1: APIキーを定義
2: OpenAIにアクセスし、文章を生成
3: {}をaに置き換えて出力する
プログラムの内容: 下記を順に実行。1、2、3
    Not battle
import openai openai.api_key = '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' print(openai.Completion.create(engine="text-davinci-003", prompt="{}").choices[0].text.strip().replace("{}", "a"))