fix: convert timestamp to string for Pydantic v2 validation in teamsbot service

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
patrick-motsch 2026-02-13 14:13:25 +01:00
parent 3c566b58d0
commit 92ee130c0a

View file

@ -281,7 +281,7 @@ class TeamsbotService:
sessionId=sessionId, sessionId=sessionId,
speaker=speaker, speaker=speaker,
text=transcriptText, text=transcriptText,
timestamp=getUtcTimestamp(), timestamp=str(getUtcTimestamp()),
confidence=confidence, confidence=confidence,
language=self.config.language, language=self.config.language,
isFinal=True, isFinal=True,
@ -476,7 +476,7 @@ class TeamsbotService:
modelName=response.modelName, modelName=response.modelName,
processingTime=response.processingTime, processingTime=response.processingTime,
priceCHF=response.priceCHF, priceCHF=response.priceCHF,
timestamp=getUtcTimestamp(), timestamp=str(getUtcTimestamp()),
).model_dump() ).model_dump()
createdResponse = interface.createBotResponse(botResponseData) createdResponse = interface.createBotResponse(botResponseData)