Get transcript summaries of Web videos.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

36 lignes
880 B

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