Skip to content

Add GPT image generation built-in tool#357

Merged
ModerRAS merged 1 commit into
masterfrom
codex/add-gpt-image-tool
May 29, 2026
Merged

Add GPT image generation built-in tool#357
ModerRAS merged 1 commit into
masterfrom
codex/add-gpt-image-tool

Conversation

@ModerRAS
Copy link
Copy Markdown
Owner

Summary

  • add a generate_image built-in tool backed by OpenAI-compatible /v1/images/generations with default gpt-image-2
  • route image API base URL and API key through existing LLM channel configuration
  • add admin commands to enable/disable the tool, hide it from prompts/native tools when disabled, and set the default image model
  • update docs and add coverage for endpoint normalization and tool visibility filtering

Tests

  • dotnet build TelegramSearchBot.sln --configuration Release
  • dotnet test TelegramSearchBot.LLM.Test/TelegramSearchBot.LLM.Test.csproj --configuration Release --no-build
  • dotnet test TelegramSearchBot.Test/TelegramSearchBot.Test.csproj --configuration Release --no-build

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@ModerRAS, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 57 minutes and 24 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a90b9f71-7f64-4018-a1ec-65fd9bdb6d2b

📥 Commits

Reviewing files that changed from the base of the PR and between c260f31 and f4fbbf5.

📒 Files selected for processing (13)
  • Docs/Bot_Commands_User_Guide.md
  • Docs/README_MCP.md
  • README.md
  • TelegramSearchBot.Common/Model/Tools/ImageGenerationResult.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/McpToolHelperTests.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/McpToolHelper.cs
  • TelegramSearchBot.Test/Manage/EditLLMConfTest.cs
  • TelegramSearchBot.Test/Service/Tools/ImageGenerationToolServiceTests.cs
  • TelegramSearchBot/AppBootstrap/GeneralBootstrap.cs
  • TelegramSearchBot/Controller/Help/HelpController.cs
  • TelegramSearchBot/Model/AI/LLMConfState.cs
  • TelegramSearchBot/Service/Manage/EditLLMConfService.cs
  • TelegramSearchBot/Service/Tools/ImageGenerationToolService.cs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/add-gpt-image-tool

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

PR Check Report

Summary

Test Results

Platform Status Details
Ubuntu Passed Tests passed, artifacts uploaded
Windows Passed Tests passed, artifacts uploaded

Code Quality

  • Code formatting check
  • Security vulnerability scan
  • Dependency analysis
  • Code coverage collection

Test Artifacts

  • Test results artifacts count: 2
  • Code coverage uploaded to Codecov

Links


This report is auto-generated by GitHub Actions

@ModerRAS ModerRAS merged commit e99fca7 into master May 29, 2026
5 checks passed
@ModerRAS ModerRAS deleted the codex/add-gpt-image-tool branch May 29, 2026 01:32
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.

1 participant