discourse-ai/lib/completions
Sam 37dbd48513
FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447)
* FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router)

Previously this feature existed but was not implemented
Also updates a bunch of models to in our preset to point to latest

* implementing in base is safer, simpler and easier to manage

* anthropic 3.5 is getting older, lets use 4.0 here and fix spec
2025-06-19 16:00:11 +10:00
..
dialects FEATURE: optionally support OpenAI responses API (#1423) 2025-06-11 17:12:25 +10:00
endpoints FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447) 2025-06-19 16:00:11 +10:00
anthropic_message_processor.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
cancel_manager.rb FEATURE: forum researcher persona for deep research (#1313) 2025-05-14 12:36:16 +10:00
json_stream_decoder.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
json_streaming_parser.rb FEATURE: partial tool call support for OpenAI and Anthropic (#908) 2024-11-14 06:58:24 +11:00
json_streaming_tracker.rb FIX: Don't check for #blank? when manipulating chunks (#1428) 2025-06-11 20:38:58 -03:00
llm.rb FIX: implement max_output tokens (anthropic/openai/bedrock/gemini/open router) (#1447) 2025-06-19 16:00:11 +10:00
nova_message_processor.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
open_ai_message_processor.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
open_ai_responses_message_processor.rb FEATURE: optionally support OpenAI responses API (#1423) 2025-06-11 17:12:25 +10:00
prompt.rb DEV: use a proper object for tool definition (#1337) 2025-05-15 17:32:39 +10:00
prompt_messages_builder.rb FEATURE: forum researcher persona for deep research (#1313) 2025-05-14 12:36:16 +10:00
report.rb FEATURE: Allow for persona & llm selection in bot conversations page (#1276) 2025-04-24 11:17:24 -05:00
structured_output.rb FEATURE: add inferred concepts system (#1330) 2025-06-02 14:29:20 -03:00
thinking.rb FEATURE: implement thinking token support (#1155) 2025-03-04 12:22:30 +11:00
tool_call.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
tool_definition.rb DEV: use a proper object for tool definition (#1337) 2025-05-15 17:32:39 +10:00
upload_encoder.rb FEATURE: enforce jpg/png for all images (#1309) 2025-05-05 17:46:37 +10:00
xml_tag_stripper.rb FIX: display search correctly, bug when stripping XML (#668) 2024-06-14 15:28:40 +10:00
xml_tool_processor.rb DEV: use a proper object for tool definition (#1337) 2025-05-15 17:32:39 +10:00