Skip to content

Skip default Model if Prompt is passedΒ #501

@toralux

Description

@toralux

Feature Request

Is your feature request related to a problem? Please describe.

In CreateResponseRequest there are input-parameters for model and prompt.

public CreateResponseRequest(
            Model model = null,
            Prompt prompt = null
) {
            Model = string.IsNullOrWhiteSpace(model) ? Models.Model.ChatGPT4o : model;
            Prompt = prompt;
}

Describe the solution you'd like

Ideally I would like Model to be passed as null / not passed to the ResponseEndpoint if a Prompt is set (or maybe always) instead of replacing with Model.ChatGPT4o as the Prompt has already defined a Model to be used.

Now I have to explicitly set the Model that is already defined for the Prompt or else it will override the Model defined in the Prompt with model ChatGPT4o if I don't send any Model argument.

Why would e.g. Model not be used from the Prompt while ReasoningEffort will be used from the Prompt? This is inconsistant when specifying a Prompt (prompt ID) both Model and ReasoningEffort and other settings from the Prompt should be used so you could reconfigure the Prompt and the .NET application using the Prompt will pick up the new prompt configurations.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions