daytimedrinkingclub / shipstation

Generate and manage your personal website and portfolio with ease
https://shipstation.ai/
73 stars 58 forks source link

Create a class for handling multple ai providers #21

Open ptmaroct opened 2 months ago

ptmaroct commented 2 months ago

Currently code is written for anthropic, we can refactor the code and make services interchangeable. Users should be able to add their OpenAI Key as well and hence the need of AIService class

Atif1727 commented 2 months ago

Can you explain this issue more ?

ptmaroct commented 2 months ago

help make the platform provider agnostic like an AI Provider class which we can use to wrap other services with their implementations

like const instance = new AIService({provider: Providers.OPEN_AI, key: 'SOME_KEY'}) // implement AIService

ptmaroct commented 2 months ago

@vikaswakde is working on this