discourse-ai/lib/completions
Sam a223d18f1a
FIX: more robust function call support (#581)
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.
2024-04-19 06:54:54 +10:00
..
dialects FEATURE: Gemini 1.5 pro support and Claude Opus bedrock support (#580) 2024-04-17 15:37:19 +10:00
endpoints FIX: more robust function call support (#581) 2024-04-19 06:54:54 +10:00
function_call_normalizer.rb FIX: more robust function call support (#581) 2024-04-19 06:54:54 +10:00
llm.rb FEATURE: Gemini 1.5 pro support and Claude Opus bedrock support (#580) 2024-04-17 15:37:19 +10:00
prompt.rb FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
upload_encoder.rb FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00