forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from aaronba/syncbranch
Disabling User Setting Toggles for Deployment Config; Default Feedback to true for all users
- Loading branch information
Showing
22 changed files
with
489 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ef": { | ||
"version": "8.0.3", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CopilotChat.WebApi.Models.Request; | ||
|
||
/// <summary> | ||
/// Parameters for updating App Config. | ||
/// </summary> | ||
public class AppConfigParameters | ||
{ | ||
/// <summary> | ||
/// Force configuration reload | ||
/// </summary> | ||
[JsonPropertyName("force")] | ||
public bool force { get; set; } | ||
|
||
/// <summary> | ||
/// AI Deployment Model Name | ||
/// </summary> | ||
[JsonPropertyName("deploymentName")] | ||
public string? deploymentName { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace CopilotChat.WebApi.Options; | ||
|
||
/// <summary> | ||
/// Configuration options for Azure OpenAI Text service. | ||
/// </summary> | ||
public sealed class AzureOpenAITextOptions | ||
{ | ||
public const string PropertyName = "AzureOpenAIText"; | ||
|
||
public string Auth { get; set; } = string.Empty; | ||
public string APIKey { get; set; } = string.Empty; | ||
public string Endpoint { get; set; } = string.Empty; | ||
public string Deployment { get; set; } = string.Empty; | ||
public string APIType { get; set; } = string.Empty; | ||
public int MaxRetries { get; set; } = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.