microsoft / ai-chat-protocol

A library + API spec for easily streaming generative AI output to your chat applications.
MIT License
115 stars 17 forks source link

Removing finish reason. #35

Closed glecaros closed 4 months ago

glecaros commented 4 months ago

This pull request primarily involves the removal of the AIChatFinishReason type and its usages across multiple files. This type was previously used to denote the reason for the completion of a chat, but it seems that this functionality is no longer needed.

Here are the most important changes:

Removal of AIChatFinishReason from exports and imports:

Removal of AIChatFinishReason from type definitions and interfaces:

Removal of AIChatFinishReason from function implementations:

These changes simplify the codebase by removing an unnecessary type and its usages.