配置model_format为internlm_silicon,报错:Invalid token

Open
#270 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
ai, api, backend

Research direction

Start by reproducing the reported command with --model_format internlm_silicon and trace how that format handles the configured Silicon API key before the backend request. The issue is done when a request using this model format no longer returns Invalid token, with the relevant error path covered by a test if one exists.

Written by the indexing model from the issue text.

Description

配置为internlm_silicon,请求后端时报错invalid token,硅基的API key已配置

报错信息如下:

python -m mindsearch.app --lang cn --model_format internlm_silicon --search_engine DuckDuckGoSearch --asy
INFO:     Started server process [10608]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8002 (Press CTRL+C to quit)
C:\Users\MI\.pyenv\pyenv-win\versions\3.10.0\lib\site-packages\lagent\llms\openai.py:513: DeprecationWarning: `top_k` parameter is deprecated in OpenAI APIs.
  warnings.warn('`top_k` parameter is deprecated in OpenAI APIs.',
C:\Users\MI\.pyenv\pyenv-win\versions\3.10.0\lib\site-packages\lagent\agents\stream.py:212: UserWarning: Neither plugin nor interpreter executor is initialized. An exception will be thrown when the agent call a tool.
  warnings.warn(
INFO:     127.0.0.1:63318 - "POST /solve HTTP/1.1" 200 OK
"Invalid token"
Dominant language
JavaScript
Stars
7k
Forks
684
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InternLM/MindSearch

All issues in InternLM/MindSearch

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.