Fix Workers AI models in Cloudflare AI Gateway #560
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the Cloudflare AI Gateway provider to improve model metadata consistency, accuracy, and usability. It standardizes model display names, corrects and enriches model configuration files (such as release dates, capabilities, and costs), and reorganizes model files for better structure and discoverability.
Key changes:
1. Model Metadata and Capabilities Updates
attachment,reasoning,tool_call,structured_output,knowledge) across all OpenAI model TOML files, ensuring consistency and accurate reflection of each model's capabilities. This includes updates for models likegpt-3.5-turbo,gpt-4,gpt-4-turbo,gpt-4o,gpt-4o-mini,gpt-5.1,gpt-5.1-codex,o1,o3,o3-mini,o3-pro, ando4-mini. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]2. Cost and Limit Corrections
3. Modalities and Input/Output Updates
modalitiessection for models to accurately reflect support fortextand/orimageinputs and outputs where applicable, especially for newer models with multi-modal capabilities. [1] [2] [3] [4] [5] [6] [7] [8] [9]4. Display Name and Model Mapping Improvements
model_names.jsonto map internal model identifiers to human-friendly display names, replacing previous 1:1 mappings. This enhances clarity for users and UIs referencing these models.5. Model File Reorganization and Naming Consistency
@cfnamespace for providers likeai4bharat,aisingapore, andbaai, and updated display names and metadata for BGE and Gemma models. This improves maintainability and discoverability of model files. [1] [2] [3] [4] [5] [6]