Conversation
- 修改 LLM 配置指向 host.docker.internal:11434 (llama.cpp) - 更新默认模型为 qwen2.5:latest - 禁用 IP 防御功能以避免 ip_blacklist collection 缺失错误 - 支持 Docker 容器内访问主机 llama.cpp 服务
Owner
Author
Self-Review Checklist ✅作为提交者,我已完成以下自查: 代码质量
功能验证
文档完整性
规范遵守
测试环境
已知限制
后续工作
Ready for review! 🔍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更类型
变更描述
修复 Docker 环境配置,使 Gateway 能够连接主机上的 llama.cpp 服务,并解决 IP 防御功能导致的启动错误。
主要修改
LLM 配置
base_url为http://host.docker.internal:11434/v1qwen2.5:latestIP 防御配置
[ip_defense]配置段enabled = falseip_blacklistcollection 导致的启动失败问题背景
在 Docker 环境中启动 Gateway 时遇到以下问题:
ip_blacklistcollection 导致所有请求被阻塞解决方案
通过配置文件调整,使 Gateway 能够:
测试
测试命令
文档
检查清单
相关 Issue
解决 Docker 环境下 Gateway 无法启动和连接 LLM 的问题。
备注
此配置适用于开发/测试环境。生产环境建议: