2026-01-06 14:38:32 +08:00
|
|
|
"""FastGPT Python SDK
|
|
|
|
|
|
|
|
|
|
A Python client library for interacting with FastGPT's OpenAPI.
|
|
|
|
|
"""
|
|
|
|
|
|
2026-01-06 16:36:13 +08:00
|
|
|
from fastgpt_client.async_client import (
|
|
|
|
|
AsyncAppClient,
|
|
|
|
|
AsyncChatClient,
|
|
|
|
|
AsyncFastGPTClient,
|
|
|
|
|
)
|
2026-01-06 14:38:32 +08:00
|
|
|
from fastgpt_client.client import AppClient, ChatClient, FastGPTClient
|
|
|
|
|
from fastgpt_client.exceptions import (
|
|
|
|
|
APIError,
|
|
|
|
|
AuthenticationError,
|
|
|
|
|
FastGPTError,
|
|
|
|
|
RateLimitError,
|
|
|
|
|
StreamParseError,
|
|
|
|
|
ValidationError,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
# Synchronous clients
|
|
|
|
|
"FastGPTClient",
|
|
|
|
|
"ChatClient",
|
|
|
|
|
"AppClient",
|
2026-01-06 16:36:13 +08:00
|
|
|
# Asynchronous clients
|
|
|
|
|
"AsyncFastGPTClient",
|
|
|
|
|
"AsyncChatClient",
|
|
|
|
|
"AsyncAppClient",
|
2026-01-06 14:38:32 +08:00
|
|
|
# Exceptions
|
|
|
|
|
"FastGPTError",
|
|
|
|
|
"APIError",
|
|
|
|
|
"AuthenticationError",
|
|
|
|
|
"RateLimitError",
|
|
|
|
|
"ValidationError",
|
|
|
|
|
"StreamParseError",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
__version__ = "0.1.0"
|