发明新词
背景
此提示测试了 LLM 创造新词并在句子中使用它们的能力。
提示
A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is:
We were traveling in Africa and we saw these very cute whatpus.
To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:
Code / API
from openai import OpenAI
client = OpenAI ()
response = client.chat.completions.create (
model="gpt-4",
messages=[
{
"role": "user",
"content": "A \"whatpu\"is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is:\nWe were traveling in Africa and we saw these very cute whatpus.\n\nTo do a \"farduddle\"means to jump up and down really fast. An example of a sentence that uses the word farduddle is:"
}
],
temperature=1,
max_tokens=256,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
参考
- 通用人工智能的曙光:GPT-4 的早期实验 (opens in a new tab) (13 April 2023)