Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/su-kaka/gcli2api
/ functions
Functions
693 in github.com/su-kaka/gcli2api
⨍
Functions
693
◇
Types & classes
71
↳
Endpoints
49
Function
creds_action
对凭证文件执行操作(启用/禁用/删除/enable_credit开关)
src/panel/creds.py:769
Function
creds_batch_action
批量对凭证文件执行操作(启用/禁用/删除/enable_credit开关)
src/panel/creds.py:872
Method
critical
(self, message: str)
log.py:283
Function
deduplicateAntigravityByEmail
()
front/common.js:2423
Function
deduplicateByEmail
()
front/common.js:2392
Function
deduplicate_credentials_by_email
批量去重凭证文件 - 删除邮箱相同的凭证(只保留一个)
src/panel/creds.py:1057
Function
deleteAntigravityCred
(filename)
front/common.js:1497
Method
delete_config
删除配置项
src/storage_adapter.py:217
Method
delete_config
删除配置
src/storage/sqlite_manager.py:1160
Method
delete_config
删除配置
src/storage/psql_manager.py:866
Method
delete_config
删除配置
src/storage/mongodb_manager.py:1288
Method
delete_credential
删除凭证
src/storage_adapter.py:178
Method
delete_credential
删除凭证
src/storage/sqlite_manager.py:585
Method
delete_credential
删除凭证
src/storage/psql_manager.py:415
Method
delete_credential
删除凭证
src/storage/mongodb_manager.py:729
Function
disconnectWebSocket
()
front/common.js:2515
Method
do_GET
(self)
src/auth.py:201
Function
do_shutdown
()
src/auth.py:957
Function
downloadAllAntigravityCreds
()
front/common.js:1502
Function
downloadAllCreds
()
front/common.js:1437
Function
downloadAntigravityCred
(filename)
front/common.js:1483
Function
downloadAntigravityCredentials
()
front/common.js:1239
Function
downloadCred
(filename)
front/common.js:1423
Function
downloadLogs
()
front/common.js:2531
Function
download_all_creds
打包下载所有凭证文件(流式处理,按需加载每个凭证数据) 只在实际下载时才加载完整凭证内容,最大化性能
src/panel/creds.py:1071
Function
download_cred_file
下载单个凭证文件
src/panel/creds.py:987
Function
download_logs
下载日志文件
src/panel/logs.py:62
Function
encode_tool_id_with_signature
将 thoughtSignature 编码到工具调用ID中,以便往返保留。 Args: tool_id: 原始工具调用ID signature: thoughtSignature(可选) Returns: 编码后的工具调用
src/converter/thoughtSignature_fix.py:34
Function
escHandler
(e)
front/common.js:598
Method
export_credential_to_json
将凭证导出为JSON文件
src/storage_adapter.py:224
Function
extract_fake_stream_content
从 Gemini 非流式响应中提取内容,用于假流式处理 Args: response: Gemini API 响应对象 Returns: (content, reasoning_content, usage) 元组
src/converter/fake_stream.py:56
Function
extract_images_from_content
从 OpenAI content 中提取文本和图片 Args: content: OpenAI 消息的 content 字段(可能是字符串或列表) Returns: 包含 text 和 images 的字典
src/converter/openai2gemini.py:1103
Function
fetchAntigravityUserEmail
(filename)
front/common.js:1584
Function
fetchUserEmail
(filename)
front/common.js:1564
Function
fetch_user_email
获取指定凭证文件的用户邮箱地址
src/panel/creds.py:1026
Function
fetch_user_email_from_file
从凭证数据获取用户邮箱地址(支持统一存储)
src/google_oauth_api.py:374
Method
from_dict
从字典创建Service Account凭证
src/google_oauth_api.py:321
Function
generate_content
处理Gemini格式的内容生成请求(非流式) Args: gemini_request: Gemini格式的请求体 model: 模型名称 api_key: API 密钥
src/router/antigravity/gemini.py:65
Function
generate_content
处理 Vertex 匿名通道的非流式内容生成请求。
src/router/vertex/gemini.py:21
Function
generate_content
处理Gemini格式的内容生成请求(非流式) Args: gemini_request: Gemini格式的请求体 model: 模型名称 api_key: API 密钥
src/router/geminicli/gemini.py:63
Function
getAntigravityCredentials
()
front/common.js:1202
Function
getCredentials
()
front/common.js:1088
Function
getTotalPages
()
front/common.js:205
Method
get_access_token
获取访问令牌
src/google_oauth_api.py:289
Method
get_all_config
获取所有配置
src/storage_adapter.py:212
Method
get_all_config
获取所有配置(从内存缓存)
src/storage/sqlite_manager.py:1155
Method
get_all_config
获取所有配置(Redis 启用时从 Redis 读取,否则从内存缓存)
src/storage/mongodb_manager.py:1274
Method
get_all_credential_states
获取所有凭证状态
src/storage_adapter.py:195
Method
get_all_credential_states
获取所有凭证状态(不包含error_messages)
src/storage/sqlite_manager.py:754
Method
get_all_credential_states
获取所有凭证状态(不包含error_messages)
src/storage/mongodb_manager.py:960
Function
get_antigravity_switch_credential_enabled
Get antigravity switch credential setting. 控制antigravity在重试时是否切换凭证。 禁用时会持续使用当前凭证,直到该凭证对当前模型进入CD或被禁用。 Environment variable: ANTIGRAV
config.py:358
Method
get_available_credentials_list
获取所有可用凭证列表 - 未禁用 - 按轮换顺序排序
src/storage/sqlite_manager.py:471
Method
get_available_credentials_list
获取所有可用凭证列表
src/storage/psql_manager.py:321
Method
get_available_credentials_list
获取所有可用凭证列表 - 未禁用 - 按轮换顺序排序
src/storage/mongodb_manager.py:575
Function
get_config
获取当前配置
src/panel/config_routes.py:22
Method
get_config
获取配置项
src/storage_adapter.py:207
Method
get_config
获取配置(从内存缓存)
src/storage/sqlite_manager.py:1150
Method
get_config
获取配置(从内存缓存)
src/storage/psql_manager.py:856
Method
get_config
获取配置(Redis 启用时从 Redis 读取,否则从内存缓存)
src/storage/mongodb_manager.py:1258
Function
get_cred_detail
按需获取单个凭证的详细数据(包含完整凭证内容) 用于用户查看/编辑凭证详情
src/panel/creds.py:703
Method
get_credential
获取凭证数据
src/storage/sqlite_manager.py:544
Function
get_credential_errors
获取指定凭证的错误信息(包含 error_codes 和 error_messages) Args: filename: 凭证文件名 mode: 凭证模式(geminicli 或 antigravity) Returns:
src/panel/creds.py:1110
Method
get_credential_errors
专门获取凭证的错误信息(包含 error_codes 和 error_messages) Args: filename: 凭证文件名 mode: 凭证模式 ("geminicli" 或 "antigravity")
src/storage/sqlite_manager.py:1177
Method
get_credential_errors
专门获取凭证的错误信息(包含 error_codes 和 error_messages) Args: filename: 凭证文件名 mode: 凭证模式 ("geminicli" 或 "antigravity")
src/storage/mongodb_manager.py:1310
Function
get_credential_quota
获取指定凭证的额度信息(仅支持 antigravity 模式)
src/panel/creds.py:1154
Method
get_credential_state
获取凭证状态
src/storage_adapter.py:190
Method
get_credential_state
获取凭证状态(不包含error_messages)
src/storage/sqlite_manager.py:677
Function
get_credentials_dir
Get credentials directory setting. Environment variable: CREDENTIALS_DIR Database config key: credentials_dir Default: ./creds
config.py:278
Method
get_credentials_summary
获取凭证的摘要信息(不包含完整凭证数据)- 支持分页和状态筛选 Args: offset: 跳过的记录数(默认0) limit: 返回的最大记录数(None表示返回所有) status_fil
src/storage/sqlite_manager.py:837
Method
get_credentials_summary
获取凭证的摘要信息(不包含完整凭证数据)- 支持分页和状态筛选 Args: offset: 跳过的记录数(默认0) limit: 返回的最大记录数(None表示返回所有) status_fil
src/storage/mongodb_manager.py:1017
Function
get_creds_status
获取凭证文件的状态(轻量级摘要,不包含完整凭证数据,支持分页和状态筛选) Args: offset: 跳过的记录数(默认0) limit: 每页返回的记录数(默认50,可选:20, 50, 100, 200, 500, 1000)
src/panel/creds.py:659
Method
get_creds_status
获取所有凭证的状态
src/credential_manager.py:172
Method
get_creds_summary
获取所有凭证的摘要信息(轻量级,不包含完整凭证数据) 使用后端的高性能查询
src/credential_manager.py:181
Method
get_current_level
(self)
log.py:286
Method
get_duplicate_credentials_by_email
获取按邮箱分组的重复凭证信息(只查询邮箱和文件名,不加载完整凭证数据) 用于去重操作 Args: mode: 凭证模式 ("geminicli" 或 "antigravity") Returns:
src/storage/sqlite_manager.py:1041
Method
get_duplicate_credentials_by_email
获取按邮箱分组的重复凭证信息(只查询邮箱和文件名,不加载完整凭证数据) 用于去重操作 Args: mode: 凭证模式 ("geminicli" 或 "antigravity") Returns:
src/storage/mongodb_manager.py:757
Method
get_log_file
(self)
log.py:293
Method
get_next_available_credential
随机获取一个可用凭证(负载均衡) - 未禁用 - 如果提供了 model_name,还会检查模型级冷却和preview状态 - 随机选择 Args: mode: 凭证模式 ("geminicl
src/storage/sqlite_manager.py:375
Method
get_next_available_credential
随机获取一个可用凭证(负载均衡) - 未禁用 - 如果提供了 model_name,还会检查模型级冷却 - 随机选择 Args: mode: 凭证模式 ("geminicli" 或 "anti
src/storage/mongodb_manager.py:499
Method
get_queue_size
(self)
log.py:300
Function
get_server_password
Get server password setting (deprecated, use get_api_password or get_panel_password). Environment variable: PASSWORD Database config key
config.py:267
Method
get_stats
获取任务管理统计信息
src/task_manager.py:118
Function
get_version_info
获取当前版本信息 - 从version.txt读取 可选参数 check_update: 是否检查GitHub上的最新版本
src/panel/version.py:18
Function
handleAntigravityFileDrop
(event)
front/common.js:1527
Function
handleAntigravityFileSelect
(event)
front/common.js:1526
Function
handleFileSelect
(event)
front/common.js:382
Function
handlePasswordEnter
(event)
front/common.js:908
Method
import_credential_from_json
从JSON文件导入凭证
src/storage_adapter.py:246
Method
initialize
初始化 SQLite 数据库
src/storage/sqlite_manager.py:74
Method
initialize
初始化 PostgreSQL 数据库
src/storage/psql_manager.py:42
Method
initialize
初始化 MongoDB 连接
src/storage/mongodb_manager.py:58
Function
is_anti_truncation_enabled
检查请求是否启用了反截断功能 Args: request_data: 请求数据 Returns: 是否启用反截断
src/converter/anti_truncation.py:721
Function
is_health_check_message
直接检查消息列表是否为健康检查消息(Anthropic专用) 这是一个便捷函数,用于已经提取出消息列表的场景。 Args: messages: 消息列表 Returns: 是否为健康检查消息
src/router/hi_check.py:51
Method
is_running
当前保活任务是否在运行
src/keeplive.py:82
Method
is_shutdown
检查是否已经开始关闭
src/task_manager.py:114
Function
keepalive
()
web.py:165
Function
lifespan
应用生命周期管理
web.py:41
Method
list_credentials
列出所有凭证文件名
src/storage_adapter.py:173
Method
list_credentials
列出所有凭证文件名(包括禁用的)
src/storage/sqlite_manager.py:568
Method
list_credentials
列出所有凭证文件名
src/storage/mongodb_manager.py:708
← previous
next →
501–600 of 693, ranked by callers