mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 08:36:22 +08:00
@@ -34,11 +34,7 @@ import { Config } from '../../fundamentals';
|
||||
import { CopilotProviderService } from './providers';
|
||||
import { ChatSession, ChatSessionService } from './session';
|
||||
import { CopilotStorage } from './storage';
|
||||
import {
|
||||
CopilotCapability,
|
||||
CopilotImageToTextProvider,
|
||||
CopilotTextToTextProvider,
|
||||
} from './types';
|
||||
import { CopilotCapability, CopilotTextProvider } from './types';
|
||||
|
||||
export interface ChatEvent {
|
||||
type: 'attachment' | 'message' | 'error';
|
||||
@@ -88,7 +84,7 @@ export class CopilotController {
|
||||
userId: string,
|
||||
sessionId: string,
|
||||
messageId?: string
|
||||
): Promise<CopilotTextToTextProvider | CopilotImageToTextProvider> {
|
||||
): Promise<CopilotTextProvider> {
|
||||
const { hasAttachment, model } = await this.checkRequest(
|
||||
userId,
|
||||
sessionId,
|
||||
|
||||
Reference in New Issue
Block a user