Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicarq committed Dec 30, 2024
1 parent f94d920 commit 8dc5194
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/shinkai-message-ts/src/api/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const sendTextMessageWithFilesToJob = async (
job_id: string,
files: File[],
bearerToken: string,
): Promise<{ inboxId: string; message: ShinkaiMessage }> => {
): Promise<{ message: ShinkaiMessage }> => {
// Upload files using the uploadFilesToVR function
const uploadResponse = await uploadFilesToJob(
nodeAddress,
Expand Down Expand Up @@ -179,7 +179,7 @@ export const sendTextMessageWithFilesToJob = async (
const data = response.data;

// Assuming the response contains the message and inboxId
return { inbox_id: job_id, message: data };
return { message: data };
};

export const updateInboxName = async (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SendMessageWithFilesToInboxInput } from './types';

export const sendMessageWithFilesToJob = async ({
nodeAddress,
token,
message,
jobId,
files,
Expand All @@ -13,5 +14,6 @@ export const sendMessageWithFilesToJob = async ({
message,
jobId,
files,
token,
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export type SendMessageWithFilesToInboxInput = {
};

export type SendMessageWithFilesToInboxOutput = {
jobId: string;
message: ShinkaiMessage;
};

0 comments on commit 8dc5194

Please sign in to comment.