We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a027520 + dcd52ad commit 9faeca9Copy full SHA for 9faeca9
src/components/Option/Playground/Playground.tsx
@@ -104,11 +104,13 @@ export const Playground = () => {
104
const lastUsedPrompt = await getLastUsedChatSystemPrompt(
105
recentChat.history.id
106
)
107
+ console.log("lastUsedPrompt", lastUsedPrompt)
108
if (lastUsedPrompt) {
109
if (lastUsedPrompt.prompt_id) {
110
const prompt = await getPromptById(lastUsedPrompt.prompt_id)
111
if (prompt) {
112
setSelectedSystemPrompt(lastUsedPrompt.prompt_id)
113
+ setSystemPrompt(lastUsedPrompt.prompt_content)
114
}
115
116
setSystemPrompt(lastUsedPrompt.prompt_content)
0 commit comments