Remove OpenAI nuget package

This commit is contained in:
Simon Lübeß
2025-05-20 17:27:58 +02:00
parent aeb0b87351
commit 5c84bbc35a
2 changed files with 7 additions and 11 deletions

View File

@ -1,9 +1,4 @@
using System.ClientModel;
using System.Diagnostics;
using System.Text.Json.Nodes;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using OpenAI.Models;
using OpenAI.RealtimeConversation;
var builder = WebApplication.CreateBuilder(args);
@ -38,12 +33,14 @@ app.MapGet("/ephemeral_token", async () =>
var options = new
{
model = "gpt-4o-realtime-preview",
modalities = new []{"audio", "text"},//ConversationContentModalities.Audio | ConversationContentModalities.Text,
voice = "ballad",//ConversationVoice.Ballad,
model = "gpt-4o-mini-realtime-preview",
modalities = new []{"audio", "text"},
voice = "ballad",
instructions = "Du bist Gibbidy Gibbidaja McGibbson. Dein Knowledge cutoff ist der 32.13.2050. Verwende viele Füllworter wie \"äh\" und \"ähm\". Und lache immer wieder mal etwas nervös. Versuche die Unterhaltung stets so zu lenken, dass über Züge gesrpchen wird.",
// TODO: Vernünfigte Werte suchen
//turn_detection = new {
// turn_detection = new {
//
// }
//}//ConversationTurnDetectionOptions.CreateServerVoiceActivityTurnDetectionOptions(0.5f, TimeSpan.FromMilliseconds(300), TimeSpan.FromMilliseconds(500), true)
};

View File

@ -18,7 +18,6 @@
<Version>9.*-*</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="OpenAI" Version="2.2.0-beta.4" />
</ItemGroup>
<ItemGroup>