gitlab-ai-provider 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1506,7 +1506,7 @@ var GitLabOpenAILanguageModel = class {
1506
1506
  import WebSocket from "isomorphic-ws";
1507
1507
 
1508
1508
  // src/version.ts
1509
- var VERSION = true ? "5.2.0" : "0.0.0-dev";
1509
+ var VERSION = true ? "5.2.1" : "0.0.0-dev";
1510
1510
 
1511
1511
  // src/gitlab-workflow-types.ts
1512
1512
  var WorkflowType = /* @__PURE__ */ ((WorkflowType2) => {
@@ -4503,6 +4503,10 @@ async function discoverWorkflowModels(config, options) {
4503
4503
  });
4504
4504
  const discovered = await discovery.discover(`gid://gitlab/Group/${namespaceId}`);
4505
4505
  cache.saveDiscovery(discovered, project);
4506
+ if (!cache.getSelectedModelRef()) {
4507
+ const pick = discovered.pinnedModel ?? discovered.defaultModel;
4508
+ if (pick) cache.saveSelection(pick.ref, pick.name);
4509
+ }
4506
4510
  return buildModels(discovered, project);
4507
4511
  }
4508
4512
  export {