mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove projectName variable, memoize onUpdateMetadata
This commit is contained in:
5 files changed
+25
-33
No files matched your search
@@ -9,7 +9,6 @@ export type AIMessage = OpenAI.Chat.Completions.ChatCompletionMessageParam;
|
||||
export interface SessionConfig {
|
||||
id: string;
|
||||
projectId: string;
|
||||
projectName: string;
|
||||
tools: Record<string, OpenAI.Chat.Completions.ChatCompletionTool>;
|
||||
customTools: Record<string, Tool<unknown>>;
|
||||
systemPrompt?: string;
|
||||
@@ -19,7 +18,6 @@ export interface SessionConfig {
|
||||
export interface SessionState {
|
||||
id: string;
|
||||
projectId: string;
|
||||
projectName: string;
|
||||
messages: AIMessage[];
|
||||
streamingMessage?: {
|
||||
role: 'assistant';
|
||||
@@ -77,7 +75,6 @@ export class SessionManager {
|
||||
const sessionState: SessionState = {
|
||||
id: config.id,
|
||||
projectId: config.projectId,
|
||||
projectName: config.projectName,
|
||||
messages: [],
|
||||
isLoading: false,
|
||||
sessionName: DotAI.generateSessionName(),
|
||||
|
||||
Reference in new issue
Block a user