Hassassistant / openai_response

Custom component to integrate OpenAI's ChatGPT into Home Assistant
72 stars 15 forks source link

How should i do this step #13

Open KongDeyu1532 opened 1 year ago

KongDeyu1532 commented 1 year ago

How should i do this step:To generate a response from GPT-3, update the input_text.gpt_input entity with the text you want to send to the model. The generated response will be available as an attribute of the sensor.hassio_openai_response entity.

dnikles commented 1 year ago

How should i do this step:To generate a response from GPT-3, update the input_text.gpt_input entity with the text you want to send to the model. The generated response will be available as an attribute of the sensor.hassio_openai_response entity.

service: input_text.set_value

IamTheLoki commented 7 months ago

Hello, can some one plz get an example how i do that integrated that to my UI? If I use the example the GPT respons is always empty. If I Use the Integration as an assist i get a response.

square: false
type: grid
columns: 1
cards:
  - type: entities
    entities:
      - entity: input_text.gpt_input
    title: Chat GPT Input
  - type: markdown
    content: '{{ state_attr(''sensor.hassio_openai_response'', ''response_text'') }}'
    title: Chat GPT Response