mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
fix: skip user custom instructions to avoid showing unsupported content
closes #269
This commit is contained in:
@@ -129,6 +129,10 @@ export interface ConversationNodeMessage {
|
||||
} | {
|
||||
content_type: 'execution_output'
|
||||
text: string
|
||||
} | {
|
||||
content_type: 'user_editable_context'
|
||||
user_profile: string
|
||||
user_instructions: string
|
||||
} | {
|
||||
content_type: 'tether_quote'
|
||||
domain?: string
|
||||
@@ -580,6 +584,8 @@ function extractConversationResult(conversationMapping: Record<string, Conversat
|
||||
node.message?.author.role !== 'system'
|
||||
// Skip model memory context
|
||||
&& node.message?.content.content_type !== 'model_editable_context'
|
||||
// Skip user custom instructions
|
||||
&& node.message?.content.content_type !== 'user_editable_context'
|
||||
) {
|
||||
result.unshift(node)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user