Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
2b30260c
Commit
2b30260c
authored
Jul 09, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message reference removed from the conversation ID
parent
16d449ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
cosmos_client.py
utils/cosmos_client.py
+4
-2
No files found.
utils/cosmos_client.py
View file @
2b30260c
...
...
@@ -399,7 +399,7 @@ class CosmosClient:
async
def
create_conversation_reference
(
self
,
turn_context
:
TurnContext
)
\
->
Dict
[
str
,
Any
]:
""" Save Conversation Re
g
erence """
""" Save Conversation Re
f
erence """
from
config
import
CosmosDBConfig
Log
.
i
(
__name__
,
"create_conversation_reference"
)
...
...
@@ -408,7 +408,9 @@ class CosmosClient:
reference_json
=
ConversationReference
.
get_schema
()
.
dump
(
reference
)
container
=
await
self
.
get_conversations_container
()
reference_json
.
update
({
CosmosDBConfig
.
Conversations
.
PK
:
reference
.
conversation
.
id
CosmosDBConfig
.
Conversations
.
PK
:
# removing message reference!
reference
.
conversation
.
id
.
split
(
";"
)[
0
]
})
def
bl
()
->
Dict
[
str
,
str
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment