Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nativu5/Gemini-FastAPI
/ functions
Functions
125 in github.com/Nativu5/Gemini-FastAPI
⨍
Functions
125
◇
Types & classes
50
↳
Endpoints
5
Method
__del__
Cleanup on destruction.
app/services/lmdb.py:584
Method
__init__
(self, client_id: str, **kwargs)
app/services/client.py:27
Method
__init__
(self)
app/services/pool.py:15
Method
__init__
Initialize LMDB store. Args: db_path: Path to LMDB database directory max_db_size: Maximum database size in
app/services/lmdb.py:147
Method
__init__
(self)
app/server/chat.py:1010
Method
_blank_proxy_to_none
(cls, value: str | None)
app/utils/config.py:49
Method
_filter_valid_models
Filter out models that don't have all required fields set.
app/utils/config.py:136
Method
_parse_json_string
(cls, v: Any)
app/utils/config.py:66
Method
_parse_models_json
(cls, v: Any)
app/utils/config.py:125
Method
clients
Return managed clients.
app/services/pool.py:109
Function
create_chat_completion
( request: ChatCompletionRequest, raw_request: Request, api_key: str = Depends(verify_api_key),
app/server/chat.py:1757
Function
create_response
( request: ResponseCreateRequest, raw_request: Request, api_key: str = Depends(verify_api_key),
app/server/chat.py:1938
Method
emit
(self, record: logging.LogRecord)
app/utils/logging.py:47
Function
get_image
(filename: str, token: str | None = Query(default=None))
app/server/images.py:10
Function
get_temp_dir
()
app/server/middleware.py:84
Function
global_exception_handler
(request: Request, exc: Exception)
app/server/middleware.py:71
Function
health_check
()
app/server/health.py:11
Method
init
Inject default configuration values.
app/services/client.py:31
Method
keys
List all keys in the store, optionally filtered by prefix.
app/services/lmdb.py:471
Function
lifespan
(app: FastAPI)
app/main.py:52
Function
list_models
(api_key: str = Depends(verify_api_key))
app/server/chat.py:1751
Method
normalize_role
Normalize 'developer' role to 'system' for Gemini compatibility.
app/models/models.py:34
Method
settings_customise_sources
Read settings: env -> yaml -> default
app/utils/config.py:239
Method
state
(self)
app/server/chat.py:1016
Function
verify_api_key
( credentials: HTTPAuthorizationCredentials = Depends(HTTPBearer(auto_error=False)), )
app/server/middleware.py:92
← previous
101–125 of 125, ranked by callers