[GH-ISSUE #75] 无法从model_configs.json中加载配置 #49

Closed
opened 2026-02-27 01:55:59 +03:00 by kerem · 2 comments
Owner

Originally created by @funnycups on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/75

model_configs.json中内容为:

"system": {
        "allow_origins": [
            "*"
        ],
        "log_level": "DEBUG",
        "api_key": "sk-xxx"
}

docker-compose.yml中已经挂载了该文件:

volumes:
      - /home/DeepSeek/model_configs.json:/app/model_manager/model_configs.json

但启动容器后,日志等级仍然是INFO,并且提示INFO - Loaded API key from config: 1234

Image
进入容器,可以看到文件被正确挂载了,内容都是有的

Originally created by @funnycups on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/ErlichLiu/DeepClaude/issues/75 `model_configs.json`中内容为: ```json "system": { "allow_origins": [ "*" ], "log_level": "DEBUG", "api_key": "sk-xxx" } ``` docker-compose.yml中已经挂载了该文件: ```yml volumes: - /home/DeepSeek/model_configs.json:/app/model_manager/model_configs.json ``` 但启动容器后,日志等级仍然是INFO,并且提示`INFO - Loaded API key from config: 1234` ![Image](https://github.com/user-attachments/assets/681c3032-4987-4c16-9f5c-c9213c42e8dc) 进入容器,可以看到文件被正确挂载了,内容都是有的
kerem 2026-02-27 01:55:59 +03:00
Author
Owner

@minghuayao81 commented on GitHub (Mar 5, 2025):

@funnycups 你docker环境中的路径不对,应该为:

volumes:
      - /home/DeepSeek/model_configs.json:/app/app/model_manager/model_configs.json

注意是:/app/app

<!-- gh-comment-id:2701000833 --> @minghuayao81 commented on GitHub (Mar 5, 2025): @funnycups 你docker环境中的路径不对,应该为: ```code volumes: - /home/DeepSeek/model_configs.json:/app/app/model_manager/model_configs.json ``` 注意是:**/app/app**
Author
Owner

@funnycups commented on GitHub (Mar 5, 2025):

@funnycups 你docker环境中的路径不对,应该为:

volumes:
      - /home/DeepSeek/model_configs.json:/app/app/model_manager/model_configs.json

注意是:/app/app

是的,项目的docker-compose这样写的,我没仔细检查。现在已经正确工作了,感谢!

<!-- gh-comment-id:2701049538 --> @funnycups commented on GitHub (Mar 5, 2025): > [@funnycups](https://github.com/funnycups) 你docker环境中的路径不对,应该为: > > ``` > volumes: > - /home/DeepSeek/model_configs.json:/app/app/model_manager/model_configs.json > ``` > > 注意是:**/app/app** 是的,项目的docker-compose这样写的,我没仔细检查。现在已经正确工作了,感谢!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#49
No description provided.