Skip to content

Commit

Permalink
Increase max_tokens for titles (#182), fixed blueprint motion trigger…
Browse files Browse the repository at this point in the history
… bug (#101)
  • Loading branch information
valentinfrlch committed Jan 23, 2025
1 parent 14a9a91 commit c6268ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blueprints/event_summary_beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ variables:
motion_sensors_list: !input motion_sensors
camera_entity: >
{% if mode == 'Camera' %}
{% if motion_sensors_list and not "camera" in trigger.entity_id %}
{% if motion_sensors_list and not trigger.entity_id.startswith("camera") %}
{% set index = motion_sensors_list.index(trigger.entity_id) %}
{{ camera_entities_list[index] }}
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/llmvision/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async def vision_request(self, call) -> str:

async def title_request(self, call) -> str:
call.temperature = 0.1
call.max_tokens = 5
call.max_tokens = 10
data = self._prepare_text_data(call)
return await self._make_request(data)

Expand Down

0 comments on commit c6268ba

Please sign in to comment.