nhaouari / obsidian-textgenerator-plugin

Text Generator is a versatile plugin for Obsidian that allows you to generate text content using various AI providers, including OpenAI, Anthropic, Google and local models.
https://text-gen.com/
MIT License
1.5k stars 133 forks source link

Custom model gives error with Auto-Suggest due to invalid user role #309

Closed baroxyton closed 3 months ago

baroxyton commented 3 months ago

Hello! I use groqs openAI compatible API with this plugin. It works, however when I try Auto-Suggest option, I get an error from the API:

Error: 'messages.0' : discriminator property 'role' has invalid value

upon investigating, I found that the autocomplete option uses a human role and I believe the issue would be fixed if it was changed to user instead

Auto-Suggest request: grafik

Generate text: grafik

haouarihk commented 3 months ago

this will be fixed soon

haouarihk commented 3 months ago

This should be fixed in version 0.7.33-beta 0.7.33-beta changes

Thanks for reporting this bug