Spaces:
Sleeping
Sleeping
Commit ·
6db94fa
1
Parent(s): 0acf26e
fix(llm): use non-reasoning Dots3 Note for structured verdict output
Browse filesnemotron-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.
- 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.
|
| 24 |
-
# function/tool calls
|
| 25 |
-
#
|
| 26 |
-
STRUCTURED_MODEL = "
|
| 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:
|