Skip to content

Conversation

@Joewus12345
Copy link
Owner

Summary

  • add a shared provider limiter with configurable concurrency and token buckets
  • wrap the OpenAI, Ollama, and Ollama-OpenAI providers to schedule calls through the limiter and pass token estimates from the Chatwoot webhook
  • extend the Chatwoot webhook suite and add limiter unit tests to validate queuing and token enforcement

Testing

  • npm test -- tests/limiter.test.js tests/chatwootWebhook.test.js

https://chatgpt.com/codex/tasks/task_e_68fc2704a3848333bfd411631cf27acb

@Joewus12345 Joewus12345 added the codex writing features, answering questions, fixing bugs, proposing pull requests for review label Oct 25, 2025 — with ChatGPT Codex Connector
@Joewus12345 Joewus12345 self-assigned this Oct 25, 2025
@Joewus12345 Joewus12345 added enhancement New feature or request refactor Changes to the codebase to enhance efficiency, security, speed and robustness of the codebase testing Addition of test cases for the codebase structure. Tests cases include unit and integration tests labels Oct 25, 2025
Copy link
Owner Author

@Joewus12345 Joewus12345 left a comment

Choose a reason for hiding this comment

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

Changes reviewed for testing and further tweaking

@Joewus12345 Joewus12345 merged commit dbd1207 into ollama Oct 25, 2025
@Joewus12345 Joewus12345 deleted the codex/implement-token-bucket-limiter-with-concurrency branch October 25, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex writing features, answering questions, fixing bugs, proposing pull requests for review enhancement New feature or request refactor Changes to the codebase to enhance efficiency, security, speed and robustness of the codebase testing Addition of test cases for the codebase structure. Tests cases include unit and integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant