mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-07 12:08:13 +00:00
a223d18f1a
For quite a few weeks now, some times, when running function calls on Anthropic we would get a "stray" - "calls" line. This has been enormously frustrating! I have been unable to find the source of the bug so instead decoupled the implementation and create a very clear "function call normalizer" This new class is extensively tested and guards against the type of edge cases we saw pre-normalizer. This also simplifies the implementation of "endpoint" which no longer needs to handle all this complex logic.