34 lines
641 B
Python
34 lines
641 B
Python
"""Inference API: protocol handlers and FastAPI server."""
|
|
|
|
from astrai.inference.api.protocol import (
|
|
AnthropicHandler,
|
|
OpenAIHandler,
|
|
ProtocolHandler,
|
|
SSEBuilder,
|
|
StopChecker,
|
|
StreamContext,
|
|
)
|
|
from astrai.inference.api.server import (
|
|
AnthropicMessage,
|
|
ChatCompletionRequest,
|
|
ChatMessage,
|
|
MessagesRequest,
|
|
app,
|
|
run_server,
|
|
)
|
|
|
|
__all__ = [
|
|
"AnthropicHandler",
|
|
"OpenAIHandler",
|
|
"ProtocolHandler",
|
|
"SSEBuilder",
|
|
"StopChecker",
|
|
"StreamContext",
|
|
"AnthropicMessage",
|
|
"ChatCompletionRequest",
|
|
"ChatMessage",
|
|
"MessagesRequest",
|
|
"app",
|
|
"run_server",
|
|
]
|