You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose an enhancement to the CreateChatCompletionStream functionality in order to allow customization of the stream return type. Specifically, I am interested in being able to extend the ChatCompletionStreamResponse structure with additional fields. Currently, this customization is not directly supported.
Proposed Solution
To address this limitation, I suggest the following changes:
1.Adding Extensibility: Enable users to add custom fields to the ChatCompletionStreamResponse structure.
2.Public Access: Make the methods and fields within streamReader, sendRequestStream, and c.newRequest public for easier customization and model integration.
Additional Context
The ability to customize the stream return type and access the internal methods and fields would greatly enhance the flexibility and usability of the CreateChatCompletionStream feature. This would allow users to integrate custom models more seamlessly and tailor the stream responses to their specific needs.
Proposed Changes
1.Allow customization of the ChatCompletionStreamResponse structure.
2.Make the methods and fields within streamReader, sendRequestStream, and c.newRequest public for easier customization.
Your feedback and consideration on this feature request would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Description
I would like to propose an enhancement to the CreateChatCompletionStream functionality in order to allow customization of the stream return type. Specifically, I am interested in being able to extend the ChatCompletionStreamResponse structure with additional fields. Currently, this customization is not directly supported.
Proposed Solution
To address this limitation, I suggest the following changes:
1.Adding Extensibility: Enable users to add custom fields to the ChatCompletionStreamResponse structure.
2.Public Access: Make the methods and fields within streamReader, sendRequestStream, and c.newRequest public for easier customization and model integration.
Additional Context
The ability to customize the stream return type and access the internal methods and fields would greatly enhance the flexibility and usability of the CreateChatCompletionStream feature. This would allow users to integrate custom models more seamlessly and tailor the stream responses to their specific needs.
Proposed Changes
1.Allow customization of the ChatCompletionStreamResponse structure.
2.Make the methods and fields within streamReader, sendRequestStream, and c.newRequest public for easier customization.
Your feedback and consideration on this feature request would be greatly appreciated.
The text was updated successfully, but these errors were encountered: