Commit
·
ae633df
1
Parent(s):
dca7b5d
Create New Assistant keeps current session instead of switching to blank
Browse files
frontend/src/pages/Playground.tsx
CHANGED
|
@@ -223,7 +223,7 @@ export function Playground() {
|
|
| 223 |
}
|
| 224 |
}
|
| 225 |
|
| 226 |
-
// Create new assistant (clear all settings
|
| 227 |
const createNewAssistant = () => {
|
| 228 |
setSystemPrompt('')
|
| 229 |
setTemperature(0.7)
|
|
@@ -233,8 +233,7 @@ export function Playground() {
|
|
| 233 |
name: 'New Assistant',
|
| 234 |
type: 'new'
|
| 235 |
})
|
| 236 |
-
//
|
| 237 |
-
clearCurrentSession()
|
| 238 |
}
|
| 239 |
|
| 240 |
// Clear current assistant
|
|
|
|
| 223 |
}
|
| 224 |
}
|
| 225 |
|
| 226 |
+
// Create new assistant (clear all settings but keep current session)
|
| 227 |
const createNewAssistant = () => {
|
| 228 |
setSystemPrompt('')
|
| 229 |
setTemperature(0.7)
|
|
|
|
| 233 |
name: 'New Assistant',
|
| 234 |
type: 'new'
|
| 235 |
})
|
| 236 |
+
// Keep current session - only clear assistant settings
|
|
|
|
| 237 |
}
|
| 238 |
|
| 239 |
// Clear current assistant
|
static/assets/index-a86ce2f3.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/assets/index-a86ce2f3.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>Edge LLM</title>
|
| 8 |
-
<script type="module" crossorigin src="/assets/index-
|
| 9 |
<link rel="stylesheet" href="/assets/index-5451caa1.css">
|
| 10 |
</head>
|
| 11 |
<body>
|
|
|
|
| 5 |
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
<title>Edge LLM</title>
|
| 8 |
+
<script type="module" crossorigin src="/assets/index-a86ce2f3.js"></script>
|
| 9 |
<link rel="stylesheet" href="/assets/index-5451caa1.css">
|
| 10 |
</head>
|
| 11 |
<body>
|