Many-in-one AI client.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

index.ts 847 B

12345678910111213141516171819202122232425262728
  1. import { Configuration } from './common';
  2. export * from './message';
  3. export * from './models';
  4. export * from './common';
  5. export { PlatformEventEmitter, PlatformEventEmitterImpl } from './events';
  6. export {
  7. ChatCompletion,
  8. ChatCompletionChunkDataEvent,
  9. DataEventObjectType as ChatCompletionDataEventObjectType,
  10. } from './features/chat-completion';
  11. export {
  12. TextCompletion,
  13. TextCompletionChunkDataEvent,
  14. DataEventObjectType as TextCompletionDataEventObjectType,
  15. } from './features/text-completion';
  16. export {
  17. CreateEditDataEvent,
  18. DataEventObjectType as EditDataEventObjectType,
  19. } from './features/edit';
  20. export { CreateImageDataEvent, CreateImageSize } from './features/image';
  21. export const PLATFORM_ID = 'openai' as const;
  22. export interface PlatformConfig {
  23. platform: typeof PLATFORM_ID;
  24. platformConfiguration: Configuration;
  25. }