From ff998fb40f725649d3d67fb2f34ab27da09104e4 Mon Sep 17 00:00:00 2001 From: Song Haoran Date: Sun, 23 Aug 2026 23:02:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WeatherForecastController.cs | 25 ------------------- src/OpsBot/OpsBot.csproj | 4 --- src/OpsBot/OpsBot.http | 6 ----- src/OpsBot/Program.cs | 19 -------------- src/OpsBot/WeatherForecast.cs | 12 --------- 5 files changed, 66 deletions(-) delete mode 100644 src/OpsBot/Controllers/WeatherForecastController.cs delete mode 100644 src/OpsBot/OpsBot.http delete mode 100644 src/OpsBot/WeatherForecast.cs diff --git a/src/OpsBot/Controllers/WeatherForecastController.cs b/src/OpsBot/Controllers/WeatherForecastController.cs deleted file mode 100644 index 79f64c2..0000000 --- a/src/OpsBot/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace OpsBot.Controllers; - -[ApiController] -[Route("[controller]")] -public class WeatherForecastController : ControllerBase -{ - private static readonly string[] Summaries = - [ - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - ]; - - [HttpGet(Name = "GetWeatherForecast")] - public IEnumerable Get() - { - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } -} \ No newline at end of file diff --git a/src/OpsBot/OpsBot.csproj b/src/OpsBot/OpsBot.csproj index 9a6358f..51bb7f0 100644 --- a/src/OpsBot/OpsBot.csproj +++ b/src/OpsBot/OpsBot.csproj @@ -7,10 +7,6 @@ Linux - - - - .dockerignore diff --git a/src/OpsBot/OpsBot.http b/src/OpsBot/OpsBot.http deleted file mode 100644 index 53cbf84..0000000 --- a/src/OpsBot/OpsBot.http +++ /dev/null @@ -1,6 +0,0 @@ -@OpsBot_HostAddress = http://localhost:5073 - -GET {{OpsBot_HostAddress}}/weatherforecast/ -Accept: application/json - -### diff --git a/src/OpsBot/Program.cs b/src/OpsBot/Program.cs index 09d90ff..b4a6646 100644 --- a/src/OpsBot/Program.cs +++ b/src/OpsBot/Program.cs @@ -6,27 +6,8 @@ public class Program { var builder = WebApplication.CreateBuilder(args); - // Add services to the container. - - builder.Services.AddControllers(); - // Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi - builder.Services.AddOpenApi(); - var app = builder.Build(); - // Configure the HTTP request pipeline. - if (app.Environment.IsDevelopment()) - { - app.MapOpenApi(); - } - - app.UseHttpsRedirection(); - - app.UseAuthorization(); - - - app.MapControllers(); - app.Run(); } } \ No newline at end of file diff --git a/src/OpsBot/WeatherForecast.cs b/src/OpsBot/WeatherForecast.cs deleted file mode 100644 index 8097e3d..0000000 --- a/src/OpsBot/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace OpsBot; - -public class WeatherForecast -{ - public DateOnly Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} \ No newline at end of file -- GitLab From 209cc71bb5ac016596a59873c5c7183e922a35f1 Mon Sep 17 00:00:00 2001 From: shRabbit Date: Mon, 24 Aug 2026 22:45:32 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=BC=96=E8=BE=91README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2f6ff37..81b6113 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,32 @@ OpsBot 提供了平台无关抽象,但目前只会实现 GitLab 平台。 ## 注意事项 ### 您的信息 -- 我们使用 Gateway 从免费提供商中提供 LLM 调用能力。部分提供商会明确收集您的对话信息,例如 [Kilo Free](https://kilo.org.cn/docs/getting-started/using-kilo-for-free)。 +- 我们使用 OpenRouter 免费路由 `openrouter/free` 提供服务。您的上游提供商可能会收集您的使用数据(如您的对话片段)以用于训练等用途。 - shRabbit 不会收集您的任何对话和使用信息。 +您通过公共免费API调用了 @vigorrabbit 则代表您已了解以上信息和风险。 + ### 代码安全性 - 推荐将您的主分支设为保护分支,避免 OpsBot 和其他贡献者误将代码提交到主分支上。 ## 提供商 -提供商会注解补充,请求会自动选择更流畅的 API,但不保证模型能力不变。 +### OpenRouter +- `openrouter/free`(收集数据) ## 使用自己的模型提供商 -**暂不支持** +### 暂定方法。目前没有实现。 +1. 通过 OAuth 关联您的 shRabbit Account 和 GitLab 账号。 +2. 打开 shRabbit 个人中心 → AI 服务,开启"通过我的 API 使用 AI 功能"。 +3. 您也可以对某一个 AI 功能分别设置。 + +使用您的私人 API,可完全避免数据隐私问题。我们不会通过任何方式收集您的任何数据。 + +目前不包含实现,可参考 shRabbit 官网和 shRabbit Account 建设情况。 + +## 活跃度 +项目后续将积极开放,直到正式版发布。发布后续仅小幅更新和不定期新增功能。 + +目前仍在做服务器迁移工作。 ## 开源许可证 OpsBot 通过 [MIT](LICENSE) 开放源代码。 \ No newline at end of file -- GitLab From 19c47d658dfe264adaebf946b802c43bd1e3ce4e Mon Sep 17 00:00:00 2001 From: shRabbit Date: Mon, 24 Aug 2026 23:11:36 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=BC=96=E8=BE=91README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81b6113..2b0810d 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,11 @@ OpsBot 提供了平台无关抽象,但目前只会实现 GitLab 平台。 - 我们使用 OpenRouter 免费路由 `openrouter/free` 提供服务。您的上游提供商可能会收集您的使用数据(如您的对话片段)以用于训练等用途。 - shRabbit 不会收集您的任何对话和使用信息。 -您通过公共免费API调用了 @vigorrabbit 则代表您已了解以上信息和风险。 - ### 代码安全性 - 推荐将您的主分支设为保护分支,避免 OpsBot 和其他贡献者误将代码提交到主分支上。 +- shRabbit 不对您在使用 OpsBot(包含在 shRabbit GitLab 中使用 @vigorrabbit)的 AI 功能中,因 AI 能力或幻觉等一切因素所造成的问题或事故负任何责任。 + +您安装并开始使用 OpsBot 或在 shRabbit GitLab 中 @vigorrabbit 则代表您已悉知以上信息和风险。 ## 提供商 ### OpenRouter -- GitLab From 934f1e8fb3acbb8979f6ffea505a7e7d5455138e Mon Sep 17 00:00:00 2001 From: shRabbit Date: Mon, 24 Aug 2026 23:16:08 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E7=BC=96=E8=BE=91README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b0810d..e47bcf9 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ OpsBot 提供了平台无关抽象,但目前只会实现 GitLab 平台。 2. 打开 shRabbit 个人中心 → AI 服务,开启"通过我的 API 使用 AI 功能"。 3. 您也可以对某一个 AI 功能分别设置。 -使用您的私人 API,可完全避免数据隐私问题。我们不会通过任何方式收集您的任何数据。 +使用您的私人 API,可完全避免数据隐私问题,并得到更流畅和智能的 AI 体验(取决于您的模型提供商)。我们不会通过任何方式收集您的任何数据。 目前不包含实现,可参考 shRabbit 官网和 shRabbit Account 建设情况。 -- GitLab