mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Break user texts up into separate messages
This commit is contained in:
8 files changed
+151
-55
No files matched your search
@@ -160,7 +160,7 @@ export class SessionManager {
|
||||
/**
|
||||
* Send a message and start AI generation
|
||||
*/
|
||||
async sendMessage(projectId: string, content: string, providerModel: string): Promise<void> {
|
||||
async sendMessage(projectId: string, content: string | Array<OpenAI.Chat.Completions.ChatCompletionContentPartText>, providerModel: string): Promise<void> {
|
||||
const session = this.sessions.get(projectId);
|
||||
|
||||
if (!session || session.isLoading) return;
|
||||
|
||||
Reference in new issue
Block a user