Skip to content

Commit b373801

Browse files
committed
fix
1 parent f387840 commit b373801

File tree

4 files changed

+16
-339
lines changed

4 files changed

+16
-339
lines changed

openshift/kustomize/services/auto-clipper/base/config-map.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ data:
2121
VOLUME_PATH: /data
2222
CHES_EMAIL_ENABLED: "true"
2323
CHES_EMAIL_AUTHORIZED: "true"
24-
LLM_API_URL: "https://mmiopenai.openai.azure.com/"
25-
LLM_MODEL_NAME: ""
26-
LLM_DEPLOYMENT_NAME: "gpt-4o-mini"
27-
LLM_API_VERSION: "gpt-4o-mini"
24+
LLM_API_URL: "https://mmi-ai-foundry-east-us-2.openai.azure.com/openai/v1/chat/completions"
25+
LLM_MODEL_NAME: "gpt-5.1-chat"

openshift/kustomize/services/auto-clipper/base/deploy.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ spec:
133133
name: services
134134
key: KAFKA_BOOTSTRAP_SERVERS
135135

136-
# Azure Cognitive Services Configuration
136+
# Azure Speech Services Configuration
137137
- name: Service__AzureSpeechRegion
138138
valueFrom:
139139
secretKeyRef:
@@ -144,6 +144,16 @@ spec:
144144
secretKeyRef:
145145
name: azure-speech-services
146146
key: AZURE_SPEECH_SERVICES_KEY
147+
- name: Service__AzureSpeechStorageConnectionString
148+
valueFrom:
149+
secretKeyRef:
150+
name: azure-speech-services
151+
key: STORAGE_CONNECTIONSTRING
152+
- name: Service__AzureSpeechStorageContainer
153+
valueFrom:
154+
secretKeyRef:
155+
name: azure-speech-services
156+
key: STORAGE_CONTAINER
147157
- name: Service__LlmApiKey
148158
valueFrom:
149159
secretKeyRef:
@@ -171,21 +181,11 @@ spec:
171181
configMapKeyRef:
172182
name: auto-clipper-service
173183
key: LLM_API_URL
174-
- name: Service__LlmModel
184+
- name: Service__LlmDefaultModel
175185
valueFrom:
176186
configMapKeyRef:
177187
name: auto-clipper-service
178188
key: LLM_MODEL_NAME
179-
- name: Service__LlmDeployment
180-
valueFrom:
181-
configMapKeyRef:
182-
name: auto-clipper-service
183-
key: LLM_DEPLOYMENT_NAME
184-
- name: Service__LlmApiVersion
185-
valueFrom:
186-
configMapKeyRef:
187-
name: auto-clipper-service
188-
key: LLM_API_VERSION
189189

190190
# S3 Configuration
191191
- name: S3__AccessKey

openshift/kustomize/services/auto-clipper/deploy.yaml

Lines changed: 0 additions & 322 deletions
This file was deleted.

services/net/auto-clipper/LLM/ClipSegmentationService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text.RegularExpressions;
66
using Microsoft.Extensions.Logging;
77
using Microsoft.Extensions.Options;
8+
using TNO.Core.Extensions;
89
using TNO.Services.AutoClipper.Azure;
910
using TNO.Services.AutoClipper.Config;
1011
using TNO.Services.AutoClipper.LLM.Models;
@@ -99,7 +100,7 @@ public async Task<IReadOnlyList<ClipDefinition>> GenerateClipsAsync(IReadOnlyLis
99100
}
100101
catch (Exception ex)
101102
{
102-
_logger.LogError(ex, "Failed to segment transcript with LLM.");
103+
_logger.LogError(ex, "Failed to segment transcript with LLM. Error: {Details}", ex.GetAllMessages());
103104
return [];
104105
}
105106
}

0 commit comments

Comments
 (0)