MCPcopy Create free account
hub / github.com/TanStack/ai / getOpenAIModelOptions

Function getOpenAIModelOptions

examples/ts-react-native-chat/src/server/app.ts:122–129  ·  view source on GitHub ↗
(model: OpenAIChatModel)

Source from the content-addressed store, hash-verified

120}
121
122function getOpenAIModelOptions(model: OpenAIChatModel) {
123 if (!supportsReasoningOptions(model)) return undefined
124 return {
125 reasoning: {
126 summary: 'auto',
127 },
128 } as const
129}
130
131export function createRecipePrompt(
132 messages: Array<ModelMessage | UIMessage>,

Callers 1

createChatStreamFunction · 0.85

Calls 1

supportsReasoningOptionsFunction · 0.85

Tested by

no test coverage detected