YUNOVA · AI Agents · Module 9: Agents with the OpenAI and Claude SDKs
Setting up a key and the SDK
Setting up a key and the SDK
Key points
- OpenAI या Anthropic (Claude) के console पर account बनाकर API key बनाई जाती है।
- API key को code में सीधे न लिखें; environment variable या .env file में रखें और Git में commit न करें।
- Python में SDK pip से install होता है, जैसे openai या anthropic package।
- पहला test एक छोटा 'hello' message भेजकर करें कि key और setup सही हैं।