discourse-ai/spec/lib/completions
Sam 05d8b021f1
FIX: scrub invalid prompts when truncating (#426)
When you trim a prompt we never want to have a state where there
is a "tool" reply without a corresponding tool call, it makes no
sense

Also

- GPT-4-Turbo is 128k, fix that
- Claude was not preserving username in prompt
- We were throwing away unicode usernames instead of adding to
message
2024-01-16 13:48:00 +11:00
..
dialects FIX: scrub invalid prompts when truncating (#426) 2024-01-16 13:48:00 +11:00
endpoints REFACTOR: Represent generic prompts with an Object. (#416) 2024-01-12 14:36:44 -03:00
llm_spec.rb FEATURE: even smoother streaming (#420) 2024-01-15 18:51:14 +11:00
prompt_spec.rb FIX: scrub invalid prompts when truncating (#426) 2024-01-16 13:48:00 +11:00