OpenAI
Package: openai · 9 nodes · Official OpenAI SDK
Chat completions, streaming, and embeddings using the official OpenAI Python SDK. Use when you need direct OpenAI API access rather than the provider-agnostic LiteLLM.
Node Reference
| Node | Type | Inputs | Outputs |
|---|---|---|---|
| Completion | statement | Messages (list<any>), System Prompt (str) | Response (openai.Response) |
| Stream | statement | Messages (list<any>), System Prompt (str) | Chunk Text (str), Full Text (str) |
| Set Api Key | statement | API Key (str) | - |
| Model Select | expression | - | Model (str) |
| Embed | statement | Text (str) | Embedding (openai.Embedding) |
| Get Text | expression | Response (openai.Response) | Text (str) |
| Get Usage | expression | Response (openai.Response) | Usage (str) |
| Build Message | expression | Content (str) | Message (openai.Message) |
| Build Messages | expression | Msg 0-3 (openai.Message) | Messages (list<any>) |