#API key calling the correct model

3 messages · Page 1 of 1 (latest)

hasty quartz
#

i generated a claude api key for chef by convex. there was no option to select which model, though. how will wherever i use it know which model to use. what if i name it somethign like 'chef' or 'test' r somethign unrelated. how do i ensure it uses the model i want, i want it to use 3.5 haiku and not 3.7 sonnet

spark zenithBOT
#

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:

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.

I'm sorry I couldn't provide a more specific answer to your question based on the available knowledge sources.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: