Skip to content

Add model-sync script that updates the current model list with the AI-SDKs list#2126

Draft
bigfluffycookie wants to merge 23 commits intomainfrom
lb/models
Draft

Add model-sync script that updates the current model list with the AI-SDKs list#2126
bigfluffycookie wants to merge 23 commits intomainfrom
lb/models

Conversation

@bigfluffycookie
Copy link
Contributor

@bigfluffycookie bigfluffycookie commented Mar 13, 2026

Fixes OPS-3907

Example PR: #2133

@linear
Copy link

linear bot commented Mar 13, 2026

AiProviderEnum.OPENAI_COMPATIBLE,
];

describe('sync-models.ts provider mapping', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is mostly to ensure that whenever a new provider is added, we get notified by the fact that the sync-models list was not updated


on:
schedule:
- cron: '0 12 * * 1'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be too frequent? we can reduce it to monthly, and whenever we have a new model we want we can run it manually

@bigfluffycookie bigfluffycookie changed the title Add github action to update model list dynamically Add model-sync script that updates the current model list with the AI-SDKs list Mar 14, 2026
typeSources: [
{
typeName: 'GoogleVertexModelId',
excludedModels: [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ai-sdk does remove retired models, but for some providers they are more consistent than others. If there are models in the sync that should not be there we can exclude them like this.

},
};

const NON_CHAT_KEYWORDS = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im sure theres more we dont want, we can add to this whenever

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant