MCPcopy Create free account
hub / github.com/coder/coder / UsesResponsesOptions

Function UsesResponsesOptions

coderd/x/chatd/chatopenai/options.go:124–134  ·  view source on GitHub ↗

UsesResponsesOptions reports whether the model should use OpenAI Responses API provider options.

(model fantasy.LanguageModel)

Source from the content-addressed store, hash-verified

122// UsesResponsesOptions reports whether the model should use OpenAI Responses
123// API provider options.
124func UsesResponsesOptions(model fantasy.LanguageModel) bool {
125 if model == nil {
126 return false
127 }
128 switch model.Provider() {
129 case fantasyopenai.Name, fantasyazure.Name:
130 return fantasyopenai.IsResponsesModel(model.Model())
131 default:
132 return false
133 }
134}
135
136// ReasoningEffortFromChat normalizes chat-config reasoning effort values for
137// OpenAI and returns the canonical provider effort value.

Callers 2

TestUsesResponsesOptionsFunction · 0.92

Calls 2

ModelMethod · 0.65
ProviderMethod · 0.45

Tested by 1

TestUsesResponsesOptionsFunction · 0.74