Add model-sync script that updates the current model list with the AI-SDKs list#2126
Add model-sync script that updates the current model list with the AI-SDKs list#2126bigfluffycookie wants to merge 23 commits intomainfrom
Conversation
| AiProviderEnum.OPENAI_COMPATIBLE, | ||
| ]; | ||
|
|
||
| describe('sync-models.ts provider mapping', () => { |
There was a problem hiding this comment.
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
.github/workflows/sync-ai-models.yml
Outdated
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 12 * * 1' |
There was a problem hiding this comment.
might be too frequent? we can reduce it to monthly, and whenever we have a new model we want we can run it manually
| typeSources: [ | ||
| { | ||
| typeName: 'GoogleVertexModelId', | ||
| excludedModels: [ |
There was a problem hiding this comment.
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 = [ |
There was a problem hiding this comment.
im sure theres more we dont want, we can add to this whenever
|



Fixes OPS-3907
Example PR: #2133