-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to all public properties from a service point of view #88
Comments
Thank you for reaching out, @rodrigovaras! I would like to ask a few clarifying questions:
|
We could eventually use the client type classes for one scenario that the provider is itself an external opneAI service that we will route the call. We currently have our own way to route the json payload in such scenario. For now we are not planning to use the client apis but only the 'models' classes to properly deserialize a JSON payload and then produce a response depending on the provider the request hit (mostly based on the model name). Here is the snippet code on our minimal API.
|
Our .NET service wants to receive OpenAI REST payloads and then hub the request to different specific service implementations. We were using the Azure OpenAI API (which is now deprecated for this project).
That library allows us to process every property on the chat request and also construct chat responses.
For some reason the code generation on this project wants to hide everything possible targeting only the client scenario.
We want to use this project but its almost impossible, one example:
public partial class ChatCompletionOptions
{
// CUSTOM:
// - Made internal. This value comes from a parameter on the client method.
// - Added setter.
///
/// A list of messages comprising the conversation so far. Example Python code.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include , , , and .
///
[CodeGenMember("Messages")]
internal IList Messages { get; set; }
Our service can't access the Messages property, but in theory we can deserialize the payload.
Bottom line, we are forced to use the Betalgo OpenAI.
Any plan to support a service scenario?
The text was updated successfully, but these errors were encountered: