Skip to content

Commit

Permalink
Merge pull request #2006 from solliancenet/cj-fix-completion-request
Browse files Browse the repository at this point in the history
Make the UserPrompt property writeable at runtime
  • Loading branch information
givenscj authored Nov 27, 2024
2 parents 652953c + 078e8f7 commit 02b8153
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
working-directory: ./src/dotnet/Common
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true

- name: Build Configuration
working-directory: ./src/dotnet/Configuration
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true

- name: Build CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true
Expand All @@ -47,6 +51,10 @@ jobs:
working-directory: ./src/dotnet/Common
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg

- name: Pack Configuration
working-directory: ./src/dotnet/Configuration
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg

- name: Pack CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg
Expand All @@ -59,6 +67,10 @@ jobs:
working-directory: ./src/dotnet/Common
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Publish Configuration to NuGet
working-directory: ./src/dotnet/Configuration
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Publish CoreClient to NuGet
working-directory: ./src/dotnet/CoreClient
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CompletionRequestBase
/// Represent the input or user prompt.
/// </summary>
[JsonPropertyName("user_prompt")]
public required string UserPrompt { get; init; }
public required string UserPrompt { get; set; }

/// <summary>
/// The message history associated with the completion request.
Expand Down

0 comments on commit 02b8153

Please sign in to comment.