Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): 增加Ollama 认证和类型配置 #192

Merged
merged 5 commits into from
Dec 30, 2024
Merged

Conversation

aide-cloud
Copy link
Collaborator

  • 在 Ollama 客户端初始化时添加了认证和类型配置
  • 这些配置项允许服务器在与 Ollama 服务交互时提供更详细的信息

- 在 Ollama 客户端初始化时添加了认证和类型配置
- 这些配置项允许服务器在与 Ollama 服务交互时提供更详细的信息
- 在 ollama聊天路由中增加了对上下文的支持
- 调用 HandleChat 函数时传入了 GetEnabledContext() 参数
- 移除 Ollama 配置中的 enabledContext 字段
- 重构 HandleChat 方法,使用安全映射存储上下文
- 新增 HandlePushContext 方法,支持上下文推送- 优化聊天处理逻辑,支持异步消息处理
- 在 config.yaml 中添加 Ollama 模型配置,包括 type、model、url、auth 和 contextSize
- 更新数据库连接字符串,使用单引号替代双引号
- 在 server.go 中添加 WithOllamaContextSize 配置项
- 调整导入顺序,将 reflect 和 sync 包提前导入
- 为 OpenAIAPIResponse 结构体添加注释
- 修正 StrategyEventLevel 和 StrategyMetricLevel 结构体的方法,使用更合适的参数命名
@aide-cloud aide-cloud merged commit acfdc3a into main Dec 30, 2024
@aide-cloud aide-cloud deleted the feature/ai_chat branch December 30, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant