[BUG] in check_consensus function (OpenRouter) #19
Labels
bug: API
Issues related to API connections. API连接相关问题
bug: fixed
Bug fixed in latest update. 此错误已在最新更新中解决
bug: R
Issues in the R package. R包中的错误或问题
你好,我是一名中国的用户,我在=== Starting check_consensus function ===环节反复遇到错误。
1、我使用OpenRouter 作为统一接入点;
2、这是我的原始代码:
consensus_results <- interactive_consensus_annotation(
input = scRNA_harmony_marker2,
tissue_name = "human osteosarcoma tissues", # 直接提供组织的自然语言描述
models = c(
"anthropic/claude-3-7-sonnet-20250219",
"meta-llama/llama-3-70b-instruct",
"google/gemini-2.5-pro-preview-03-25"
),
api_keys = list(
openrouter = "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"
),
top_gene_count = 10,
controversy_threshold = 0.7,
entropy_threshold = 1,
max_discussion_rounds = 1,
consensus_check_model = "anthropic/claude-3-7-sonnet-20250219",
cache_dir = cache_dir
)
3、我的问题在于每次都存在共识检查失败:
(1)报错如下:
[2025-04-28 14:22:18] Trying model qwen-max-2025-01-25 for consensus check
[2025-04-28 14:22:18] No API key available for qwen-max-2025-01-25, skipping
[2025-04-28 14:22:18] Trying model claude-3-5-sonnet-latest for consensus check
[2025-04-28 14:22:18] No API key available for claude-3-5-sonnet-latest, skipping
[2025-04-28 14:22:18] Trying model gpt-4o for consensus check
[2025-04-28 14:22:18] Attempt 1 of 3 with model gpt-4o
[2025-04-28 14:22:18] Starting OpenAI API request with model: gpt-4o
[2025-04-28 14:22:18] Using model: gpt-4o
[2025-04-28 14:22:18] Processing 1 chunks of input
[2025-04-28 14:22:18] Processing chunk 1 of 1
[2025-04-28 14:22:18] Sending API request...
[2025-04-28 14:22:19] ERROR: OpenAI API request failed: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
[2025-04-28 14:22:19] ERROR on gpt-4o attempt 1: OpenAI API request failed: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
[2025-04-28 14:22:19] Waiting for 5 seconds before next attempt...
[2025-04-28 14:22:24] Attempt 2 of 3 with model gpt-4o
[2025-04-28 14:22:24] Starting OpenAI API request with model: gpt-4o
[2025-04-28 14:22:24] Using model: gpt-4o
[2025-04-28 14:22:24] Processing 1 chunks of input
[2025-04-28 14:22:24] Processing chunk 1 of 1
[2025-04-28 14:22:24] Sending API request...
[2025-04-28 14:22:25] ERROR: OpenAI API request failed: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
(2)然而我明明设置了 consensus_check_model = "anthropic/claude-3-7-sonnet-20250219",为什么无法按照我设置的模型进行共识检查呢?已经更换多种模型依然无法有效解决。
似乎,程序总是按照GPT 4o作为共识检查模型。你明白的,这在中国大陆不是很容易。而且OpenRouter用一条api集成多种模型,对中国大陆的用户非常方便。
所以您能解决这一问题吗?或者您还需要我提供更多详细信息吗?谢谢您!
The text was updated successfully, but these errors were encountered: