fix: import getChatHistory for copy buttons
This commit is contained in:
parent
36935f0956
commit
b5defdde58
1 changed files with 2 additions and 0 deletions
|
|
@ -1046,6 +1046,7 @@ async function openUncloseaiEmbeddedModalNew() {
|
|||
{ text: "🌐 Translate", action: () => window.openTranslateModal() },
|
||||
{ text: "📋 Full Raw", action: async () => {
|
||||
try {
|
||||
const { getChatHistory } = await import('./chat.js');
|
||||
const history = getChatHistory();
|
||||
let rawContent = '';
|
||||
history.forEach(msg => {
|
||||
|
|
@ -1063,6 +1064,7 @@ async function openUncloseaiEmbeddedModalNew() {
|
|||
}},
|
||||
{ text: "📄 Full HTML", action: async () => {
|
||||
try {
|
||||
const { getChatHistory } = await import('./chat.js');
|
||||
const history = getChatHistory();
|
||||
let htmlContent = '<div style="font-family: system-ui, -apple-system, sans-serif;">';
|
||||
history.forEach(msg => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue