File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
custom_components/ha_text_ai Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -865,8 +865,7 @@ async def async_process_question(
865
865
context_tokens = self ._calculate_context_tokens (
866
866
[{"content" : entry ["question" ]} for entry in context_history ] +
867
867
[{"content" : entry ["response" ]} for entry in context_history ] +
868
- [{"content" : question }],
869
- temp_model
868
+ [{"content" : question }]
870
869
)
871
870
872
871
# Dynamic token allocation
@@ -886,8 +885,7 @@ async def async_process_question(
886
885
context_tokens = self ._calculate_context_tokens (
887
886
[{"content" : entry ["question" ]} for entry in context_history ] +
888
887
[{"content" : entry ["response" ]} for entry in context_history ] +
889
- [{"content" : question }],
890
- temp_model
888
+ [{"content" : question }]
891
889
)
892
890
893
891
# Rebuild messages with trimmed context
You can’t perform that action at this time.
0 commit comments