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

[C#] fix: Remove [] intializer notation #2232

Merged
merged 23 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d4ac6c4
[C#] feat: O1 model support (#2111)
singhk97 Oct 17, 2024
a56fec2
[C#] fix: When streaming operation failed the exception is suppressed…
singhk97 Oct 17, 2024
b006d89
[C#] fix: content safety public preview deprecation (#2138)
singhk97 Oct 23, 2024
0c7375f
[C#] feat: Generated by AI Label, Feedback Loop, Streaming Buffer, Er…
lilyydu Oct 23, 2024
ca9b71c
[C#] feat: Streaming - Citations & Sensitivity Label (#2147)
lilyydu Oct 30, 2024
92d4aef
[C#] fix: Map tokens config to `max_tokens` when non-o1 model is used…
singhk97 Oct 31, 2024
437dbbe
[C#] bump: dotnet to 1.8.0 (#2157)
singhk97 Oct 31, 2024
a338eec
Merge branch 'main' into dotnet-dev
singhk97 Oct 31, 2024
9bcd35f
Update manifest.json
singhk97 Oct 31, 2024
804ff05
[C#] fix: update streamType enum conversion to string (#2178)
lilyydu Nov 11, 2024
2c65184
bump to v1.8.1
singhk97 Nov 12, 2024
2416a20
merge main
singhk97 Nov 12, 2024
1c7d9c9
[C#] fix: Upgrade tokenizers library to the GA version 1.0.0 (#2210)
tarekgh Dec 2, 2024
2ba12e3
[C#] feat: Implemented basic changes needed to support streaming tool…
Stevenic Dec 9, 2024
0e3ce84
mere'
singhk97 Dec 10, 2024
bc4c3a5
[C#] fix: failure to load prompt due to json serialization error (#2227)
singhk97 Dec 10, 2024
f40dbc9
Merge branch 'dotnet-dev' of https://github.com/microsoft/teams-ai in…
singhk97 Dec 10, 2024
852a523
[C#] bump: dotnet to v1.9.0 (#2229)
singhk97 Dec 10, 2024
df94bb1
remove weird addition
singhk97 Dec 11, 2024
68aa670
revert bracket style init
singhk97 Dec 11, 2024
ba4f6b7
editor style change
singhk97 Dec 11, 2024
be7eeca
merge main
singhk97 Dec 11, 2024
5091d51
fix warnings
singhk97 Dec 11, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# CS0618: Type or member is obsolete
dotnet_diagnostic.CS0618.severity = silent

# IDE0028: Simplify collection initialization
dotnet_diagnostic.IDE0028.severity = silent
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

namespace Microsoft.Teams.AI.AI.Models
{
public class SequenceBuilder<T>
internal class SequenceBuilder<T>
{
private Segment _first;
private Segment _last;
private Segment? _first;
private Segment? _last;

public void Append(ReadOnlyMemory<T> data)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

namespace Microsoft.Teams.AI.AI.Models
{
public class StreamingChatToolCallsBuilder
internal class StreamingChatToolCallsBuilder
{
private readonly Dictionary<int, string> _indexToToolCallId = [];
private readonly Dictionary<int, string> _indexToFunctionName = [];
private readonly Dictionary<int, SequenceBuilder<byte>> _indexToFunctionArguments = [];
private readonly Dictionary<int, string> _indexToToolCallId = new();
private readonly Dictionary<int, string> _indexToFunctionName = new();
private readonly Dictionary<int, SequenceBuilder<byte>> _indexToFunctionArguments = new();

public void Append(StreamingChatToolCallUpdate toolCallUpdate)
{
Expand Down Expand Up @@ -39,7 +39,7 @@ public void Append(StreamingChatToolCallUpdate toolCallUpdate)

public IReadOnlyList<ChatToolCall> Build()
{
List<ChatToolCall> toolCalls = [];
List<ChatToolCall> toolCalls = new();

foreach (KeyValuePair<int, string> indexToToolCallIdPair in _indexToToolCallId)
{
Expand Down
Loading