@ai-sdk/openai 4.0.0-beta.23 → 4.0.0-beta.26

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.
@@ -2498,7 +2498,7 @@ var shellSkillsSchema = import_v414.z.array(
2498
2498
  import_v414.z.discriminatedUnion("type", [
2499
2499
  import_v414.z.object({
2500
2500
  type: import_v414.z.literal("skillReference"),
2501
- skillId: import_v414.z.string(),
2501
+ providerReference: import_v414.z.record(import_v414.z.string(), import_v414.z.string()),
2502
2502
  version: import_v414.z.string().optional()
2503
2503
  }),
2504
2504
  import_v414.z.object({
@@ -4921,19 +4921,25 @@ function mapShellEnvironment(environment) {
4921
4921
  }
4922
4922
  function mapShellSkills(skills) {
4923
4923
  return skills == null ? void 0 : skills.map(
4924
- (skill) => skill.type === "skillReference" ? {
4925
- type: "skill_reference",
4926
- skill_id: skill.skillId,
4927
- version: skill.version
4928
- } : {
4929
- type: "inline",
4930
- name: skill.name,
4931
- description: skill.description,
4932
- source: {
4933
- type: "base64",
4934
- media_type: skill.source.mediaType,
4935
- data: skill.source.data
4936
- }
4924
+ (skill) => {
4925
+ var _a, _b;
4926
+ return skill.type === "skillReference" ? {
4927
+ type: "skill_reference",
4928
+ skill_id: (0, import_provider_utils33.resolveProviderReference)({
4929
+ reference: (_a = skill.providerReference) != null ? _a : {},
4930
+ provider: "openai"
4931
+ }),
4932
+ version: (_b = skill.version) != null ? _b : "latest"
4933
+ } : {
4934
+ type: "inline",
4935
+ name: skill.name,
4936
+ description: skill.description,
4937
+ source: {
4938
+ type: "base64",
4939
+ media_type: skill.source.mediaType,
4940
+ data: skill.source.data
4941
+ }
4942
+ };
4937
4943
  }
4938
4944
  );
4939
4945
  }