danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.34k stars 3.23k forks source link

🦙 refactor: Normalize Ollama Config Names #4657

Closed danny-avila closed 2 weeks ago

danny-avila commented 2 weeks ago

Summary

Closes #4654

I standardized the Ollama endpoint name normalization across endpoint and model configurations, improving code consistency and maintainability.

Testing

To test these changes:

  1. Configure custom Ollama endpoints with varying name cases (e.g., "ollama", "Ollama", "OLLAMA")
  2. Verify all variations are normalized correctly in both endpoint and model configurations
  3. Ensure existing endpoint functionality remains intact
  4. Check that the normalized names are consistently used throughout the application

Test Configuration: