Improves model retrieval by adding API key validation check for both model fetching methods Adds fallback to predefined models when no API key is present Sorts model lists alphabetically by display name for consistent presentation Enhances robustness of model service handling