Skip to content

Commit 659135f

Browse files
committed
add missing conversation id
Signed-off-by: Hailong Cui <[email protected]>
1 parent 5eee72c commit 659135f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/services/chat/olly_chat_service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export class OllyChatService implements ChatService {
130130
}
131131

132132
private async callExecuteAgentAPI(payload: AgentRunPayload, agentId: string) {
133-
console.log('callExecuteAgentAPI', JSON.stringify(payload));
134133
try {
135134
const agentFrameworkResponse = (await this.opensearchClientTransport.request(
136135
{
@@ -195,6 +194,7 @@ export class OllyChatService implements ChatService {
195194
context: input.context?.content,
196195
verbose: false,
197196
agentRole: input.context?.agentRole,
197+
memory_id: payload.conversationId,
198198
};
199199

200200
return await this.requestAgentRun(parametersPayload);

server/utils/format.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ import {
1515
export const formatInteractionFromBackend = (
1616
interaction: InteractionFromAgentFramework
1717
): Interaction => {
18-
const { message_id: messageId, memory_id: memoryId, input, ...others } = interaction || {};
18+
const { message_id: messageId, memory_id: memoryId, ...others } = interaction || {};
1919
return {
2020
...others,
21-
input,
2221
interaction_id: messageId || '',
2322
conversation_id: memoryId || '',
2423
};

0 commit comments

Comments
 (0)