Skip to content

Commit

Permalink
[JS] fix: update openai version to match peer version (#1855)
Browse files Browse the repository at this point in the history
## Linked issues

#minor

## Details

Provide a list of your changes here. If you are fixing a bug, please
provide steps to reproduce the bug.

#### Change details

update samples to use same version of `openai` dependency as deployed
package
  • Loading branch information
aacebo authored Jul 18, 2024
1 parent 1282a07 commit afcca4d
Show file tree
Hide file tree
Showing 23 changed files with 113 additions and 113 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.TeamsAI\Microsoft.Teams.AI.csproj" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.TeamsAI\Microsoft.Teams.AI.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Microsoft.Teams.AI</PackageId>
<Product>Microsoft Teams AI SDK</Product>
<Version>1.4.0</Version>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageDescription>SDK focused on building AI based applications for Microsoft Teams.</PackageDescription>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/microsoft/teams-ai</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup>
<!-- Rules found at: https://aka.ms/Microsoft-NuGet-Compliance -->
<PackageProjectUrl>https://github.com/microsoft/teams-ai</PackageProjectUrl>
<PackageIconUrl>https://github-production-user-asset-6210df.s3.amazonaws.com/14900841/240368384-972a9a1b-679a-4725-bfc0-a1e76151a78a.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>bots;ai;teams</PackageTags>
<!--
Suppress a warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported,
replace PackageLicenseUrl with PackageLicenseExpression.
-->
<NoWarn>NU5125</NoWarn>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AdaptiveCards" Version="3.1.0" />
<PackageReference Include="Azure.AI.ContentSafety" Version="1.0.0-beta.1" />
<PackageReference Include="Azure.AI.OpenAI.Assistants" Version="1.0.0-beta.3" />
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
<PackageReference Include="JsonSchema.Net" Version="5.5.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.7" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.22.7" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.22.7" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.ML.Tokenizers" Version="0.22.0-preview.24271.1" />
<PackageReference Include="System.Text.Json" Version="7.0.4" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Microsoft.Teams.AI</PackageId>
<Product>Microsoft Teams AI SDK</Product>
<Version>1.4.0</Version>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageDescription>SDK focused on building AI based applications for Microsoft Teams.</PackageDescription>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/microsoft/teams-ai</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup>
<!-- Rules found at: https://aka.ms/Microsoft-NuGet-Compliance -->
<PackageProjectUrl>https://github.com/microsoft/teams-ai</PackageProjectUrl>
<PackageIconUrl>https://github-production-user-asset-6210df.s3.amazonaws.com/14900841/240368384-972a9a1b-679a-4725-bfc0-a1e76151a78a.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>bots;ai;teams</PackageTags>
<!--
Suppress a warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported,
replace PackageLicenseUrl with PackageLicenseExpression.
-->
<NoWarn>NU5125</NoWarn>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AdaptiveCards" Version="3.1.0" />
<PackageReference Include="Azure.AI.ContentSafety" Version="1.0.0-beta.1" />
<PackageReference Include="Azure.AI.OpenAI.Assistants" Version="1.0.0-beta.3" />
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
<PackageReference Include="JsonSchema.Net" Version="5.5.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Bot.Builder" Version="4.22.7" />
<PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.22.7" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.22.7" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.ML.Tokenizers" Version="0.22.0-preview.24271.1" />
<PackageReference Include="System.Text.Json" Version="7.0.4" />
</ItemGroup>

<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion js/samples/01.getting-started/a.echoBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@microsoft/teams-ai": "~1.3.1",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"axios": "^1.7.2",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"axios": "^1.7.2",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/03.ai-concepts/a.twentyQuestions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"botbuilder": "^4.22.3",
"@microsoft/teams-ai": "~1.3.1",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"botbuilder": "^4.22.3",
"@microsoft/teams-ai": "~1.3.1",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"botbuilder": "^4.22.3",
"@microsoft/teams-ai": "~1.3.1",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@microsoft/teams-ai": "~1.3.1",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/03.ai-concepts/e.customModel-LLAMA/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"botbuilder": "^4.22.3",
"@microsoft/teams-ai": "~1.3.1",
"openai": "^4.41.0",
"openai": "4.28.4",
"dotenv": "^16.4.1",
"replace": "~1.2.0",
"restify": "~11.1.0"
Expand Down
2 changes: 1 addition & 1 deletion js/samples/03.ai-concepts/f.chatModeration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"jsonwebtoken": "^9.0.2",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/a.teamsChefBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@microsoft/teams-js": "^2.25.0",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0",
"vectra": "^0.7.6"
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/b.devOpsBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dotenv": "^16.4.5",
"replace": "~1.2.0",
"restify": "~11.1.0",
"openai": "^4.41.0"
"openai": "4.28.4"
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.6",
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/c.vision-cardGazer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@microsoft/teamsfx": "^2.3.2",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/d.assistants-mathBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"jsonwebtoken": "^9.0.2",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/e.assistants-orderBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"jsonwebtoken": "^9.0.2",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/04.ai-apps/f.whoBot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"botbuilder": "^4.22.3",
"botbuilder-dialogs": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"botbuilder": "^4.22.3",
"debug": "^4.3.5",
"dotenv": "^16.4.1",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0",
"vectra": "^0.7.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@microsoft/teams-ai": "~1.3.1",
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"isomorphic-fetch": "^3.0.0",
"replace": "~1.2.0",
"restify": "~11.1.0"
Expand Down
2 changes: 1 addition & 1 deletion js/samples/05.authentication/b.oauth-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"botbuilder": "^4.22.3",
"botbuilder-dialogs": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"botbuilder": "^4.22.3",
"dotenv": "^16.4.5",
"isomorphic-fetch": "^3.0.0",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion js/samples/05.authentication/d.teamsSSO-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"botbuilder": "^4.22.3",
"botbuilder-dialogs": "^4.22.3",
"dotenv": "^16.4.5",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0",
"shx": "^0.3.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"botbuilder-azure-blobs": "^4.22.3",
"dotenv": "^16.4.5",
"isomorphic-fetch": "^3.0.0",
"openai": "^4.41.0",
"openai": "4.28.4",
"replace": "~1.2.0",
"restify": "~11.1.0",
"shx": "^0.3.4"
Expand Down

0 comments on commit afcca4d

Please sign in to comment.