You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(api): add OpenAI SDK dependency and environment configuration
- Add OPENAI_API_KEY to .dev.vars.example following established pattern
- Prepare infrastructure for OpenAI node implementation
* feat(api): implement OpenAI model nodes for GPT-4.1, GPT-5, GPT-5 Mini, and GPT-5 Nano
- Add GPT-4.1 node with compute cost 25
- Add GPT-5 node with compute cost 35
- Add GPT-5 Mini node with compute cost 15
- Add GPT-5 Nano node with compute cost 5
- All nodes follow established patterns with proper error handling
- Uses OpenAI SDK for chat completions API
- Supports system instructions and user input parameters
* feat(api): integrate OpenAI nodes into CloudflareNodeRegistry
- Add imports for GPT-4.1, GPT-5, GPT-5 Mini, and GPT-5 Nano nodes
- Add hasOpenAI environment check for OPENAI_API_KEY
- Register OpenAI nodes conditionally when API key is available
- Follow existing Anthropic node registration patterns
- Add OPENAI_API_KEY env var to runtime context
* test(api): add comprehensive unit tests for OpenAI nodes and fix runtime context
- Add unit tests for GPT-4.1, GPT-5, GPT-5 Mini, and GPT-5 Nano nodes
- Each test suite validates node type definitions, instantiation, and error handling
- Test coverage includes API key validation, input validation, and parameter definitions
- Fix runtime context to pass OPENAI_API_KEY to node execution environment
- All tests pass successfully, completing Phase 4 of OpenAI integration
---------
Co-authored-by: Bertil Chapuis <bchapuis@gmail.com>
0 commit comments