From 5c84bbc35ac47047c6da609f73a1ac5245f9037d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 20 May 2025 17:27:58 +0200 Subject: [PATCH] Remove OpenAI nuget package --- USEntryCoach.Server/Program.cs | 17 +++++++---------- USEntryCoach.Server/USEntryCoach.Server.csproj | 1 - 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/USEntryCoach.Server/Program.cs b/USEntryCoach.Server/Program.cs index 24c5831..e44345f 100644 --- a/USEntryCoach.Server/Program.cs +++ b/USEntryCoach.Server/Program.cs @@ -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) }; diff --git a/USEntryCoach.Server/USEntryCoach.Server.csproj b/USEntryCoach.Server/USEntryCoach.Server.csproj index 586c184..f570bc4 100644 --- a/USEntryCoach.Server/USEntryCoach.Server.csproj +++ b/USEntryCoach.Server/USEntryCoach.Server.csproj @@ -18,7 +18,6 @@ 9.*-* -