brainless / dwata

AI assistants for everyone

Home Page:https://dwata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enum `AIProvider` serialize/deserialize error

brainless opened this issue · comments

I followed the instructions in the SETUP file and got it running.

I'm having some trouble adding an AI provider and could use your help. I'm able to select an AI provider, enter the API key, and press save, but then I get this error:

"invalid args `pk` for command `read_module_item_by_pk`: command read_module_item_by_pk missing required key pk"

ERROR dwata::workspace::crud] Could not fetch rows from Dwata DB, table ai_integration.
    Error: error occurred while decoding column "ai_provider": invalid value "OpenAI" for enum AIProvider

Have you seen this before? it looks like insert_module_item is working but read_module_item_by_pk is not.

This was reported by @QLangstaff