feat: no branches workflow support (#7119)

fix AFF-1165 AFF-1164
This commit is contained in:
darkskygit
2024-06-07 05:53:39 +00:00
parent b75da1f3e0
commit 44b0ea2b6c
14 changed files with 599 additions and 12 deletions
@@ -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,