...
|
...
|
@@ -259,9 +259,9 @@ export function WritingPage() { |
|
|
return;
|
|
|
try {
|
|
|
setLoading(true);
|
|
|
messages.push({ role: "user", content: msg });
|
|
|
const response = await chatStore.sendContext(messages, "gpt-4o-mini");
|
|
|
messages.push({ role: "assistant", content: response });
|
|
|
|
|
|
let cleanedContent = response.startsWith("```html")
|
|
|
? response.substring(8)
|
|
|
: response;
|
...
|
...
|
|