设置环境
让我们获取必要的密钥来设置我们的演示环境。
每个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 (无需信用卡)