MCPcopy Create free account

hub / github.com/HisMax/RedInk / functions

Functions355 in github.com/HisMax/RedInk

FunctionsetupAutoSave
()
frontend/src/stores/generator.ts:564
FunctionstartContentGeneration
* 开始生成内容(标题、文案、标签) * 设置状态为生成中并清除之前的错误
frontend/src/stores/generator.ts:450
FunctionstartGeneration
* 开始图片生成流程 * 初始化进度状态和图片列表
frontend/src/stores/generator.ts:291
FunctionstartGenerationFlow
()
frontend/src/composables/useGenerationRunner.ts:19
FunctionsyncRawFromPages
* 根据 pages 数组重新生成 raw 文本 * 用于保持 raw 和 pages 的数据同步
frontend/src/stores/generator.ts:210
Functiontemp_history_dir
创建临时历史目录
tests/conftest.py:30
FunctiontestImageConnection
* 测试图片服务商连接(弹窗中)
frontend/src/composables/useProviderForm.ts:476
FunctiontestImageProviderInList
* 测试列表中的图片服务商
frontend/src/composables/useProviderForm.ts:500
FunctiontestTextConnection
* 测试文本服务商连接(弹窗中)
frontend/src/composables/useProviderForm.ts:317
FunctiontestTextProviderInList
* 测试列表中的文本服务商
frontend/src/composables/useProviderForm.ts:341
Functiontest_cached_generation_events_do_not_call_generator
(tmp_path)
tests/history_and_image_service_test.py:62
Functiontest_classifies_405_html_as_endpoint_method_mismatch
()
tests/errors_test.py:49
Functiontest_classifies_common_http_statuses
()
tests/errors_test.py:68
Functiontest_classifies_fake_ip_tls_error
()
tests/errors_test.py:8
Functiontest_classifies_model_endpoint_mismatch
()
tests/errors_test.py:39
Functiontest_classifies_proxy_unavailable
()
tests/errors_test.py:27
Functiontest_config_test_missing_type_returns_structured_error
(client)
tests/errors_test.py:97
Functiontest_config_test_preserves_classified_http_status
(client, monkeypatch)
tests/errors_test.py:117
Functiontest_config_test_without_json_content_type_returns_structured_error
(client)
tests/errors_test.py:107
Functiontest_connection
测试服务商连接 请求体: - type: 服务商类型(google_genai/google_gemini/openai_compatible/image_api) - provider_name: 服务商名称(用于从配置读取 AP
backend/routes/config_routes.py:130
Functiontest_error_payload_keeps_compat_error_message
()
tests/errors_test.py:78
Functiontest_explicit_response_format_is_removed_after_unknown_parameter
()
tests/image_api_client_test.py:75
Functiontest_history_update_protects_images_and_completed_status
(tmp_path)
tests/history_and_image_service_test.py:16
Functiontest_image_api_chat_test_does_not_treat_405_as_success
(monkeypatch)
tests/errors_test.py:284
Functiontest_merge_generated_image_is_index_aligned
(tmp_path)
tests/history_and_image_service_test.py:43
Functiontest_normalize_error_result_wraps_legacy_service_error
()
tests/errors_test.py:86
Functiontest_openai_compatible_test_accepts_hidden_reasoning_token_response
(monkeypatch)
tests/errors_test.py:212
Functiontest_openai_compatible_test_accepts_reasoning_only_response
(monkeypatch)
tests/errors_test.py:176
Functiontest_openai_compatible_test_retries_with_max_completion_tokens
(monkeypatch)
tests/errors_test.py:247
Functiontest_openai_compatible_test_uses_configured_endpoint_for_real_llm_request
(monkeypatch)
tests/errors_test.py:138
Functiontest_outline_missing_topic_returns_structured_error
(client)
tests/errors_test.py:306
Functiontest_real_models_do_not_send_response_format_by_default
()
tests/image_api_client_test.py:40
Functiontest_response_extractor_supports_b64_data_url_and_url
()
tests/image_api_client_test.py:96
Functiontest_retry_failed_images_creates_task_dir_and_merges_by_index
(tmp_path)
tests/history_and_image_service_test.py:127
Functiontest_single_image_generation_writes_history_immediately
(tmp_path)
tests/history_and_image_service_test.py:96
Functiontest_sse_error_event_is_structured
()
tests/errors_test.py:316
Functiontest_worker_count_requires_explicit_high_concurrency
()
tests/image_api_client_test.py:55
Methodtype
(self)
backend/errors.py:24
FunctionupdateHistory
( recordId: string, data: UpdateHistoryParams )
frontend/src/api/history.ts:89
FunctionupdateImage
* 更新指定图片的URL * @param index 页面索引 * @param newUrl 新的图片URL
frontend/src/stores/generator.ts:329
FunctionupdateImageForm
* 更新图片表单数据
frontend/src/composables/useProviderForm.ts:528
FunctionupdatePage
* 更新指定页面的内容 * @param index 页面索引 * @param content 新的页面内容
frontend/src/stores/generator.ts:197
FunctionupdateProgress
* 更新图片生成进度 * @param index 页面索引 * @param status 生成状态 * @param url 图片URL(可选) * @param error 错误信息(可选)
frontend/src/stores/generator.ts:311
FunctionupdateTextForm
* 更新文本表单数据
frontend/src/composables/useProviderForm.ts:521
Functionupdate_config
更新配置 请求体: - image_generation: 图片生成配置(可选) - text_generation: 文本生成配置(可选) 返回: - success: 是否成功
backend/routes/config_routes.py:87
Functionupdate_history
更新历史记录 支持部分更新,只更新提供的字段。 每次更新都会自动刷新 updated_at 时间戳。 路径参数: - record_id: 记录 ID 请求体(均为可选): - o
backend/routes/history_routes.py:176
FunctionuseGenerationRunner
( hasFailedImages: ComputedRef<boolean>, setError: (error: AppError | null) => void )
frontend/src/composables/useGenerationRunner.ts:9
FunctionuseImageRetry
(setError: (error: AppError | null) => void)
frontend/src/composables/useImageRetry.ts:13
FunctionuseProviderForm
()
frontend/src/composables/useProviderForm.ts:75
Methodvalidate_config
验证配置
backend/generators/openai_compatible.py:44
Methodvalidate_config
验证配置
backend/generators/google_genai.py:325
Methodvalidate_config
验证配置是否有效 Returns: 配置是否有效
backend/generators/base.py:39
Methodworker_count
(self)
backend/generators/image_provider_policy.py:61
Functionwrapper
(*args, **kwargs)
backend/utils/genai_client.py:16
Functionwrapper
(*args, **kwargs)
backend/utils/text_client.py:15
← previous301–355 of 355, ranked by callers