Current collected state Current
Observed since 21 Oct, 09:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
The official Python library for the AI71 API
Developers building Python 3.8+ apps can now interact seamlessly with the AI71 API thanks to the ai71 Python library. It includes built-in type checking for both requests and responses, and provides both synchronous and asynchronous HTTP clients powered by httpx.
The API documentation can be found here.
pip install ai71
Define AI71_API_KEY environment variable or provide api_key in AI71 and AsyncAI71.
import os
from ai71 import AI71
client = AI71()
chat_completion = client.chat.completions.create(
messages=[{"role": "user", "content": "What is your name?"}],
model="tiiuae/falcon-180B-chat",
)
# Fetch supported models
model_list = client.models.list()
import asyncio
from ai71 import AsyncAI71
client = AsyncAI71()
async def main():
stream = await client.chat.completions.create(
messages=[{"role": "user", "content": "What is your name?"}],
model="tiiuae/falcon-180B-chat",
stream=True,
)
async for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
# Fetch supported models
model_list = await client.models.list()
asyncio.run(main())
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.1 | 16 Apr 2025 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:591a819359e6b65cbe4de2a4a1c6cd8c64c5af4d7b3de9bc831b892d4281284e