扩展 VSCode

发布于 更新于

AI总结: 本文介绍了一个配置文件的内容,该文件涉及多个模型和命令的设置,包括Pro/Qwen/Qwen2.5-Coder-7B-Instruct和Qwen/Qwen2.5-Coder-32B-Instruct等。文件中定义了API基础地址、上下文长度、提供者信息以及自定义命令如“test”用于编写单元测试。此外,还包含了不同的上下文提供者和斜杠命令,如“share”和“commit”。存在的错误观点是,未提及该配置文件的具体用途和适用场景,可能导致读者对其功能产生误解。

Continue

C:\Users\Administrator\.continue\config.json  
{  
  "tabAutocompleteModel": {  
    "title": "Pro/Qwen/Qwen2.5-Coder-7B-Instruct | ME",  
    "model": "Pro/Qwen/Qwen2.5-Coder-7B-Instruct",  
    "apiBase": "http://myecs/v1/",  
    "contextLength": 32000,  
    "provider": "siliconflow"  
  },  
  "models": [  
    {  
      "title": "Qwen/Qwen2.5-Coder-32B-Instruct | ME",  
      "model": "Qwen/Qwen2.5-Coder-32B-Instruct",  
      "apiBase": "http://myecs/v1/",  
      "contextLength": 32000,  
      "provider": "siliconflow"  
    },  
    {  
      "title": "deepseek-ai/DeepSeek-R1 | ME",  
      "model": "deepseek-ai/DeepSeek-R1",  
      "apiBase": "http://myecs/v1/",  
      "contextLength": 32000,  
      "provider": "siliconflow"  
    }  
  ],  
  "customCommands": [  
    {  
      "name": "test",  
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",  
      "description": "Write unit tests for highlighted code"  
    }  
  ],  
  "contextProviders": [  
    {  
      "name": "code",  
      "params": {}  
    },  
    {  
      "name": "docs",  
      "params": {}  
    },  
    {  
      "name": "diff",  
      "params": {}  
    },  
    {  
      "name": "terminal",  
      "params": {}  
    },  
    {  
      "name": "problems",  
      "params": {}  
    },  
    {  
      "name": "folder",  
      "params": {}  
    },  
    {  
      "name": "codebase",  
      "params": {}  
    }  
  ],  
  "slashCommands": [  
    {  
      "name": "share",  
      "description": "Export the current chat session to markdown"  
    },  
    {  
      "name": "cmd",  
      "description": "Generate a shell command"  
    },  
    {  
      "name": "commit",  
      "description": "Generate a git commit message"  
    }  
  ]  
}  

Codegeex

  "Codegeex.Local": {  
    "apiURL": "http://myecs/v1/chat/completions",  
    "useChatGLM": true,  
    "chatGLM": {  
      "apiKey": "",  
      "model": "Qwen/Qwen2.5-Coder-32B-Instruct"  
    },  
    "chat": {  
      "useDefaultSystemPrompt": true,  
      "systemPrompt": "",  
      "temperature": 0.2,  
      "top_p": 0.95,  
      "max_tokens": 1024,  
      "presence_penalty": 1  
    },  
    "completions": {  
      "useDefaultSystemPrompt": true,  
      "systemPrompt": "",  
      "temperature": 0.2,  
      "top_p": 0.95,  
      "max_tokens": 64,  
      "presence_penalty": 1  
    }  
  },