Update App.tsx
This commit is contained in:
@@ -58,6 +58,9 @@ function reviewIdFromPath(): string | null {
|
|||||||
* actually plays even when the session restores instantly. */
|
* actually plays even when the session restores instantly. */
|
||||||
const MIN_SPLASH_MS = 1100;
|
const MIN_SPLASH_MS = 1100;
|
||||||
|
|
||||||
|
/** Max footer-arrow retries for the same failed model prompt. */
|
||||||
|
const MAX_RETRIES = 3;
|
||||||
|
|
||||||
function applyTheme(theme: string) {
|
function applyTheme(theme: string) {
|
||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
const dark =
|
const dark =
|
||||||
@@ -273,9 +276,6 @@ export function App() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Max footer-arrow retries for the same failed prompt. */
|
|
||||||
const MAX_RETRIES = 3;
|
|
||||||
|
|
||||||
/** Stream one assistant reply for an exact history; resolves its text. */
|
/** Stream one assistant reply for an exact history; resolves its text. */
|
||||||
async function streamReply(history: ChatMessage[], convId: string): Promise<string> {
|
async function streamReply(history: ChatMessage[], convId: string): Promise<string> {
|
||||||
// "Thinking" feature flag: decorate the outgoing payload only — the
|
// "Thinking" feature flag: decorate the outgoing payload only — the
|
||||||
|
|||||||
Reference in New Issue
Block a user