CiscsoPonce commited on
Commit
6db94fa
·
1 Parent(s): 0acf26e

fix(llm): use non-reasoning Dots3 Note for structured verdict output

Browse files

nemotron-3.5-lightning burns up to ~900 completion tokens on internal
chain-of-thought before emitting the verdict, which can exceed strict
max_tokens and break InvestmentVerdict JSON parsing. Dots3 Note is a
non-reasoning model that handles tool calls + JSON cleanly and was
verified to produce a valid verdict within budget.

Files changed (1) hide show
  1. src/llm.py +4 -4
src/llm.py CHANGED
@@ -20,10 +20,10 @@ MODEL_CHAIN = [
20
  "openrouter/free",
21
  ]
22
 
23
- # Best model for structured (JSON) output. Nemotron 3.5 Lightning handles
24
- # function/tool calls cleanly (finish_reason=tool_calls), which is what
25
- # `with_structured_output` relies on for valid InvestmentVerdict JSON.
26
- STRUCTURED_MODEL = "nvidia/nemotron-3.5-lightning:free"
27
 
28
 
29
  def get_llm() -> ChatOpenAI:
 
20
  "openrouter/free",
21
  ]
22
 
23
+ # Best model for structured (JSON) output. Dots3 Note is non-reasoning and
24
+ # handles function/tool calls + JSON cleanly, so it does not waste completion
25
+ # tokens on internal chain-of-thought — important for strict verdict parsing.
26
+ STRUCTURED_MODEL = "dots-studio/dots-3-note-preview:free"
27
 
28
 
29
  def get_llm() -> ChatOpenAI: