Many-in-one AI client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
847 B

  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. }