Get transcript summaries of Web videos.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

33 linhas
776 B

  1. export type ProcessEvent = {
  2. processType: string,
  3. phase: string,
  4. command?: string,
  5. content?: string,
  6. contentType?: string,
  7. };
  8. type ProcessEventCallback = (event: ProcessEvent) => void;
  9. type ErrorEventCallback = (event: Error) => void;
  10. export interface SummarizerEventEmitter extends NodeJS.EventEmitter {
  11. process(): void;
  12. on(eventType: 'process', callback: ProcessEventCallback): this;
  13. on(eventType: 'error', callback: ErrorEventCallback): this;
  14. on(eventType: 'end', callback: () => void): this;
  15. }
  16. export interface OpenAiParams {
  17. apiKey: string;
  18. organizationId?: string;
  19. model?: string;
  20. temperature?: number;
  21. }
  22. export interface CreateBaseSummarizerParams {
  23. url: string;
  24. language?: string;
  25. country?: string;
  26. openAiParams: OpenAiParams;
  27. }