#API key calling the correct model
3 messages · Page 1 of 1 (latest)
Hi @hasty quartz. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the knowledge sources provided, I don't have specific information about Claude API keys for a product called "chef by convex" or how to specify Claude model versions (like 3.5 Haiku or 3.7 Sonnet) within Convex.
The knowledge sources mention Claude models being used with Convex in various contexts, such as:
- Claude 3.7-Sonnet and GPT-4o being used for evaluations Link to Convex Evals
- An example of using Claude 3.5 Sonnet with AWS Bedrock in a Convex action Discord thread about AI SDK
However, there's no specific information about how to configure a Claude API key to use a particular model version within Convex.
For API keys in general, Convex allows you to store them as environment variables that can be accessed in your functions using process.env. You can set these through the Convex dashboard or using the CLI:
npx convex env set OPENAI_API_KEY <your key>
npx convex env --prod set OPENAI_API_KEY <your key>
If you need more specific information about configuring Claude API keys with Convex and selecting specific models, I'd recommend checking the latest Convex documentation or reaching out to Convex support directly.