Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Issue: import AsyncAnthropic missing #107

Closed
aymansyam opened this issue Aug 9, 2023 · 1 comment
Closed

Docs Issue: import AsyncAnthropic missing #107

aymansyam opened this issue Aug 9, 2023 · 1 comment

Comments

@aymansyam
Copy link

aymansyam commented Aug 9, 2023

In the README where it mentions about AsyncAnthropic, the import statement is using Anthropic instead of AsyncAnthropic

Async Usage

Simply import AsyncAnthropic instead of Anthropic and use await with each API call:

from anthropic import Anthropic, HUMAN_PROMPT, AI_PROMPT

anthropic = AsyncAnthropic(
    # defaults to os.environ.get("ANTHROPIC_API_KEY")
    api_key="my api key",
)
@rattrayalex
Copy link
Collaborator

Thanks for reporting, we'll get this fixed soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants