genai.extensions.localserver.local_api_server module¶
- class genai.extensions.localserver.local_api_server.ApiAuthMiddleware[source]¶
Bases:
BaseHTTPMiddleware
- class genai.extensions.localserver.local_api_server.ApiErrorMiddleware[source]¶
Bases:
BaseHTTPMiddleware
- class genai.extensions.localserver.local_api_server.LocalLLMServer[source]¶
Bases:
object
- __init__(models, port=8080, interface='0.0.0.0', api_key=None, insecure_api=False)[source]¶
- Parameters:
models (list[type[LocalModel]])
port (int)
interface (str)
api_key (str | None)
insecure_api (bool)