Skip to content

Commit 9cf2768

Browse files
committed
Add channel info to ChatMemory integration extension
1 parent 3f76f7a commit 9cf2768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Extension/ChatMemory/ChatMemoryIntegrator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class ChatMemoryIntegrator : MonoBehaviour
1212
[SerializeField]
1313
private string BaseUrl;
1414
public string UserId;
15+
public string Channel;
1516
[SerializeField]
1617
private bool isDebug;
1718
private ChatdollHttp httpClient = new ChatdollHttp(timeout: 10000);
@@ -41,6 +42,7 @@ await httpClient.PostJsonAsync(
4142
new() { { "role", "user" }, { "content", requestText } },
4243
new() { { "role", "assistant" }, { "content", responseText } }
4344
}},
45+
{ "channel", Channel }
4446
},
4547
cancellationToken: token
4648
);

0 commit comments

Comments
 (0)