microsoft / ai-chat-protocol

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

Fixing issue on how options were being applied to the request. #72

Closed glecaros closed 3 months ago

glecaros commented 3 months ago

This pull request to sdk/js/packages/client/src/client.ts includes changes to improve the request preparation process and streamline the code. The most important changes include adding a new utility function for converting operation options to request parameters, refactoring the request preparation logic, and simplifying the request handling in the AIChatProtocolClient class.

Improvements to request preparation:

Simplification of request handling: