fix: convert timestamp to string for Pydantic v2 validation in teamsbot service
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3c566b58d0
commit
92ee130c0a
1 changed files with 2 additions and 2 deletions
|
|
@ -281,7 +281,7 @@ class TeamsbotService:
|
|||
sessionId=sessionId,
|
||||
speaker=speaker,
|
||||
text=transcriptText,
|
||||
timestamp=getUtcTimestamp(),
|
||||
timestamp=str(getUtcTimestamp()),
|
||||
confidence=confidence,
|
||||
language=self.config.language,
|
||||
isFinal=True,
|
||||
|
|
@ -476,7 +476,7 @@ class TeamsbotService:
|
|||
modelName=response.modelName,
|
||||
processingTime=response.processingTime,
|
||||
priceCHF=response.priceCHF,
|
||||
timestamp=getUtcTimestamp(),
|
||||
timestamp=str(getUtcTimestamp()),
|
||||
).model_dump()
|
||||
|
||||
createdResponse = interface.createBotResponse(botResponseData)
|
||||
|
|
|
|||
Loading…
Reference in a new issue