vertyco / vrt-cogs

Utility and fun cogs for Red
MIT License
49 stars 29 forks source link

assistant: !assist endpoint [url] does not update the endpoint #158

Closed twilwa closed 11 months ago

twilwa commented 11 months ago

Describe the bug A clear and concise description of what the bug is. the assistant continues to call the openai endpoint, regardless of overwrites. overwrite confirmation message appears **Cog Version* Specify the version of the cog you are using. assistant To Reproduce** Steps to reproduce the behavior: !assist endpoint [non-openai-url] Endpoint overwritten! !assist openaikey [key for Openai] @bot , hello? bot replies

Expected behavior A clear and concise description of what you expected to happen. !assist endpoint [non-openai-url] Endpoint overwritten! !assist openaikey [key for Openai] @bot , hello? bot responds 'invalid api key'

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. image

vertyco commented 11 months ago

The api key needs to be removed if you want it to use the override

twilwa commented 11 months ago

if the overrided endpoint needs an api key, how would i handle that

vertyco commented 11 months ago

It doesn't, the cog only supports either OpenAI or self-hosted models, not other APIs that use keys.