The official Python SDK for You.com, providing access to You.com's AI chat, code generation, and search APIs. Current version 2.3.0, requires Python >=3.10. Follows monthly release cadence.
pip install youdotcomVerified import paths — ran on the pinned version, not inferred.
Initialize the client with an API key and make a simple chat request.
Require Python 3.10+ and upgrade youdotcom to latest.
Use `from youdotcom import YouClient, ChatCompletion` instead of old submodule imports.
Always specify a model string, e.g., `model='gpt-4'`.
Use `YouClient(api_key='your-key')` or export `YOU_API_KEY`.
Create an httpx.AsyncClient with desired settings and pass it as `http_client` parameter to YouClient/AsyncYouClient.