()
| 103 | } |
| 104 | |
| 105 | function requireOpenAIApiKey(): string { |
| 106 | const apiKey = process.env.OPENAI_API_KEY |
| 107 | if (!apiKey) { |
| 108 | throw new Error(LIVE_RECIPE_SERVER_ERROR) |
| 109 | } |
| 110 | return apiKey |
| 111 | } |
| 112 | |
| 113 | function supportsReasoningOptions(model: OpenAIChatModel) { |
| 114 | return ( |