The issue was caused by model providers being capitalized, which was not taken into account when matching clients. This change converts the model provider to lowercase before looking up the corresponding client.
Test plan
Choose an Ollama model
Say hello to Cody
Before: Cody will response that it's Claude to confirm we are not connected to the Ollama client.
The issue was caused by model providers being capitalized, which was not taken into account when matching clients. This change converts the model provider to lowercase before looking up the corresponding client.
Test plan
Before: Cody will response that it's Claude to confirm we are not connected to the Ollama client.
After: No more Claude in the response.