Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

@SamSaffron SamSaffron commented Jun 2, 2025

  • Add sleep function for tool polling with rate limits
  • Support base64 encoding for HTTP requests and uploads
  • Enhance forum researcher with cost warnings and comprehensive planning
  • Add cancellation support for research operations
  • Include feature_name parameter for bot analytics

@SamSaffron SamSaffron changed the title bugfix monday DEV: improve tool infra, improve forum researcher prompts, improve logging Jun 2, 2025

results = []

formatter.each_chunk { |chunk| results << run_inference(chunk[:text], goals, post, &blk) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you also do a break if context.cancel_manager&.cancelled? here in each_chunk?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it breaks early enough in run inf not to matter.


@http_requests_made = 0
@sleep_calls_made = 0
@http_requests_made = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dup of line 34 above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

bot = DiscourseAi::Personas::Bot.as(bot_user, persona: persona.new)

DiscourseAi::AiBot::Playground.new(bot).reply_to(post)
DiscourseAi::AiBot::Playground.new(bot).reply_to(post, feature_name: "bot")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to pass this from the job caller?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm maybe ... this job though is dedicated to bot.

@SamSaffron SamSaffron merged commit 4dffd0b into main Jun 3, 2025
6 checks passed
@SamSaffron SamSaffron deleted the bugfix-monday branch June 3, 2025 05:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants