设置环境
让我们获取必要的密钥来设置我们的演示环境。
每个 LLM 提供商都需要 API 密钥(例如 OPENAI_API_KEY
)。您可以从 OpenAI、Cohere 和 AI21 获取 API 密钥,无需等待。
让我们为演示获取它们!
OpenAI: https://platform.openai.com/account/api-keys
Cohere: https://dashboard.cohere.com/welcome/login?redirect_uri=%2Fapi-keys (无需信用卡)
AI21: https://studio.ai21.com/account/api-key (无需信用卡)