Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Feature Request: Configurable Ollama Base URL

未关闭
#8 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Anurag-S1ngh 已经在做这个了。

开始于 2026年10月24日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, go, ollama
领域
ai, ci-cd

调研方向

首先检查 action.yml 和 README.md,然后定位 Go 代码中调用 Ollama API 的位置。在保留 localhost 默认值的同时添加可配置输入,验证格式错误或无法访问的 URL,并记录 workflow 的使用方式。当所有 Ollama 调用都使用所选 URL,且相关测试或检查通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

🛠️ Feature Request: Configurable Ollama Base URL

Team 150

Problem Statement

The current implementation has Ollama's base URL hardcoded to http://localhost:11434. This limits flexibility, especially for users who want to point to a self-hosted or remote Ollama instance rather than the default local setup.

Proposed Solution

Add an ollama-url input parameter to the GitHub Action configuration (action.yml). This parameter should allow users to specify a custom Ollama server URL. The action should use this input to determine the base URL for connecting to Ollama.

Acceptance Criteria
  • Introduce a new ollama-url input in action.yml (with a suitable default if omitted).
  • Update code to use the specified ollama-url for all Ollama API calls.
  • Update documentation and README.md to explain how to set a custom Ollama URL.
  • Add input validation and error handling for malformed or unreachable URLs.
Context / Motivation

Making Ollama's base URL configurable enables broader support for diverse CI/CD or on-premise deployments where the Ollama server may not be running on localhost.

Additional Notes
  • Ensure the default (http://localhost:11434) is maintained for users who do not specify a value.
  • Example usage in workflow:
    with:
      ollama-url: "http://my-ollama-server:11434"
    
主要语言
Go
星标
4
派生
7
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。