Closed monarchwadia closed 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
Chat.with({ provider: 'openai', config: { apiKey: process.env.OPENAI_API_KEY } });
@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...