monarchwadia / ragged

33 stars 4 forks source link

0.5.0 #17

Closed monarchwadia closed 2 months ago

monarchwadia commented 2 months ago

@markwylde It turned out to be thornier than I thought. Structural type systems are weird v/s nominal. Decided to move to discriminated unions. The new Chat.with syntax is now...

Chat.with({
  provider: 'openai',
  config: { apiKey: process.env.OPENAI_API_KEY }
});