Skip to content

Commit

Permalink
Update import.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AthanaD authored Dec 30, 2023
1 parent ae8545c commit 0bc5057
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const validateExportV1 = (data: ExportV1): data is ExportV1 => {
return validateAndFixChats(data.chats) && validateFolders(data.folders);
};

// Convert OpenAI chat format to BetterChatGPT format
export const convertOpenAIToBetterChatGPTFormat = (
// Convert OpenAI chat format to DevinChatGPT format
export const convertOpenAIToDevinChatGPTFormat = (
openAIChat: OpenAIChat
): ChatInterface => {
const messages: MessageInterface[] = [];
Expand Down Expand Up @@ -126,7 +126,7 @@ export const convertOpenAIToBetterChatGPTFormat = (
};
};

// Import OpenAI chat data and convert it to BetterChatGPT format
// Import OpenAI chat data and convert it to DevinChatGPT format
export const importOpenAIChatExport = (openAIChatExport: OpenAIChat[]) => {
return openAIChatExport.map(convertOpenAIToBetterChatGPTFormat);
return openAIChatExport.map(convertOpenAIToDevinChatGPTFormat);
};

0 comments on commit 0bc5057

Please sign in to comment.