jekalmin / extended_openai_conversation

Home Assistant custom component of conversation agent. It uses OpenAI to control your devices.
834 stars 108 forks source link

Just returns json #164

Open sennecoolgames opened 4 months ago

sennecoolgames commented 4 months ago

Whenever I try to ask the ai anything it just outputs the code to toggle a light but it doesn't do anything. I have tried different models but nothing works image

jekalmin commented 3 months ago

Thanks for reporting an issue.

What model have you tried? Are you using OpenAI or other alternatives?

wangcccccct commented 2 months ago

I am using openrouter's openchat3.5 model and have the same problem.

sennecoolgames commented 2 months ago

I was using multiple free ones from openrouter

wangcccccct commented 2 months ago

I have read the document again and I found out that it's because of openai's service calling and openrouter didn't use it in its api. But I don't know how to fix it.