与证明押韵

背景

这个提示通过要求LLM以诗歌的形式写出素数无限性的证明,来测试其自然语言和创造能力。

提示

Can you write a proof that there are infinitely many primes, with every line that rhymes?

代码 / API

from openai import OpenAI
client = OpenAI()
 
response = client.chat.completions.create(
model="gpt-4",
messages=[
    {
    "role": "user",
    "content": "Can you write a proof that there are infinitely many primes, with every line that rhymes?"
    }
],
temperature=1,
max_tokens=256,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)

参考