Skip to content

Commit

Permalink
Remove custom OpenAI code with official library
Browse files Browse the repository at this point in the history
  • Loading branch information
waf committed Dec 13, 2024
1 parent dbffe47 commit 291be09
Show file tree
Hide file tree
Showing 17 changed files with 85 additions and 856 deletions.
1 change: 1 addition & 0 deletions CSharpRepl.Services/CSharpRepl.Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="9.0.0" />
<PackageReference Include="Microsoft.SymbolStore" Version="1.0.555801" />
<PackageReference Include="OpenAI" Version="2.1.0" />
<PackageReference Include="PrettyPrompt" Version="4.1.1" />
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
<PackageReference Include="System.IO.Abstractions" Version="21.1.3" />
Expand Down
2 changes: 1 addition & 1 deletion CSharpRepl.Services/Completion/AutoCompleteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task<CompletionItemWithDescription[]> Complete(Document document, s
.ConfigureAwait(false);

var completionsWithDescriptions = completions?.ItemsList
.Where(item => !(item.IsComplexTextEdit && item.InlineDescription.Length > 0)) //TODO https://github.com/waf/CSharpRepl/issues/236
.Where(item => item.DisplayText != nameof(__CSharpRepl_RuntimeHelper) && !(item.IsComplexTextEdit && item.InlineDescription.Length > 0)) //TODO https://github.com/waf/CSharpRepl/issues/236
.Select(item => new CompletionItemWithDescription(item, GetDisplayText(item), cancellationToken => GetExtendedDescriptionAsync(completionService, document, item, highlighter)))
.ToArray() ?? [];

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 291be09

Please sign in to comment.