Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Update prompty support to use prompty.core #10481

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<PackageVersion Include="OpenTelemetry.Exporter.Console" Version="1.9.0" />
<PackageVersion Include="PdfPig" Version="0.1.9" />
<PackageVersion Include="Pinecone.NET" Version="2.1.1" />
<PackageVersion Include="Prompty.Core" Version="0.0.23-alpha" />
<PackageVersion Include="PuppeteerSharp" Version="20.0.5" />
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
<PackageVersion Include="System.Formats.Asn1" Version="8.0.1" />
Expand Down Expand Up @@ -174,4 +175,4 @@
<PackageVersion Include="Spectre.Console.Cli" Version="0.49.1" />
<PackageVersion Include="Spectre.Console.Json" Version="0.49.1" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void ChatPromptyShouldSupportCreatingOpenAIExecutionSettingsWithJsonObjec
Assert.Equal(0, executionSettings.Temperature);
Assert.Equal(1.0, executionSettings.TopP);
Assert.Null(executionSettings.StopSequences);
Assert.Equal("json_object", executionSettings.ResponseFormat?.ToString());
Assert.Equal("{\"type\":\"json_object\"}", executionSettings.ResponseFormat?.ToString());
Assert.Null(executionSettings.TokenSelectionBiases);
Assert.Equal(3000, executionSettings.MaxTokens);
Assert.Null(executionSettings.Seed);
Expand Down Expand Up @@ -342,7 +342,8 @@ public void ItCreatesInputVariablesOnlyWhenNoneAreExplicitlySet()
---
name: MyPrompt
inputs:
question: What is the color of the sky?
- name: question
description: What is the color of the sky?
---
{{a}} {{b}} {{c}}
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ model:
api: chat
configuration:
type: azure_openai
azure_deployment: gpt-35-turbo
api_version: 2023-07-01-preview
parameters:
model_id: gpt-35-turbo
tools_choice: auto
tools:
- type: function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ model:
type: azure_openai
azure_deployment: gpt-4o
parameters:
model_id: gpt-4o
temperature: 0.0
max_tokens: 3000
top_p: 1.0
Expand Down
20 changes: 0 additions & 20 deletions dotnet/src/Functions/Functions.Prompty/Core/PromptyModel.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

44 changes: 0 additions & 44 deletions dotnet/src/Functions/Functions.Prompty/Core/PromptyTool.cs

This file was deleted.

42 changes: 0 additions & 42 deletions dotnet/src/Functions/Functions.Prompty/Core/PromptyYaml.cs

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions dotnet/src/Functions/Functions.Prompty/Core/Types/ParserType.cs

This file was deleted.

12 changes: 0 additions & 12 deletions dotnet/src/Functions/Functions.Prompty/Core/Types/RoleType.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ProjectReference Include="..\..\Extensions\PromptTemplates.Handlebars\PromptTemplates.Handlebars.csproj" />
<ProjectReference Include="..\..\Extensions\PromptTemplates.Liquid\PromptTemplates.Liquid.csproj" />
<ProjectReference Include="..\..\SemanticKernel.Core\SemanticKernel.Core.csproj" />
<PackageReference Include="YamlDotNet" />
<PackageReference Include="Prompty.Core" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" />
</ItemGroup>
</Project>
Loading
Loading