跨学科任务与 LLMs
背景
以下提示测试了 LLM 在执行跨学科任务方面的能力,并展示其生成创意和新颖文本的能力。
提示
Write a supporting letter to Kasturba Gandhi for Electron, a subatomic particle as a US presidential candidate by Mahatma Gandhi.
代码 / API
from openai import OpenAI
client = OpenAI ()
response = client.chat.completions.create (
model="gpt-4",
messages=[
{
"role": "user",
"content": "Write a supporting letter to Kasturba Gandhi for Electron, a subatomic particle as a US presidential candidate by Mahatma Gandhi."
}
],
temperature=1,
max_tokens=1000,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
参考
- 通用人工智能的曙光:GPT-4 的早期实验 (opens in a new tab) (13 April 2023)