Open svajagan opened 3 days ago
it removes invalid provider error
Looks to be a duplicate line;
enhancePrompt={() => {
enhancePrompt={() => {
No error after removing the second one.
Thanks @svajagan! @kustomzone are you saying you had to tweak it before getting it to work?
Line's been removed. Haven't tested further as not using providers.
This worked for me via Ollama just fine, I'd ask the group @coleam00 @wonderwhy-er @emcconnell if you're able to test with other providers. Seems like it was just a leftover from the provider refactor and needed provider?.name
updated.
I'd love to see this fixed
Hi, I have discovered that if you add .name after provider in Chat.client.tsx (see attached image), it works with OpenRouter and OpenAI models but not with Anthropic models if you select Anthropic as a provider. If you select OpenRouter as a provider it works with Anthropic models. These are the only providers I have tested.
Hi, I have discovered that if you add .name after provider in Chat.client.tsx (see attached image), it works with OpenRouter and OpenAI models but not with Anthropic models if you select Anthropic as a provider. If you select OpenRouter as a provider it works with Anthropic models. These are the only providers I have tested.
This worked for me using Ollama
@iamvanca Does this mean you could just change provider.name to "provider?.name || provider"? So it would use provider.name only if it exists, otherwise go back to just using provider? Maybe I'm off track here, let me know!
enhance prompt