n4nAI

Topic

Migrating from the Raw OpenAI SDK to a Framework

13 posts on migrating from the raw openai sdk to a framework — part of framework tutorials on the n4n AI blog.

Framework tutorialsAnalysis

Why we moved from the raw OpenAI SDK to LangGraph

A senior engineer's honest breakdown of migrating from the raw OpenAI SDK to LangGraph — where the SDK breaks down, what LangGraph actually solves, and the tradeoffs you'll live with.

5 min read
Framework tutorialsHow-to

Migrating raw OpenAI SDK memory management to LangChain

Step-by-step guide to migrating conversation memory from raw OpenAI SDK to LangChain with runnable code and verification checkpoints.

3 min read
Framework tutorialsHow-to

Migrating raw OpenAI SDK error handling to LangChain

A step-by-step guide to migrating OpenAI SDK error handling patterns to LangChain with runnable code and verification steps.

4 min read
Framework tutorialsHow-to

Migrating OpenAI SDK retry logic to a framework's defaults

Learn how to migrate custom OpenAI SDK retry logic to your framework's built-in defaults with step-by-step code examples and verification strategies.

4 min read
Framework tutorialsHow-to

From raw OpenAI streaming to LangChain's streaming API

Step-by-step guide to migrating from raw OpenAI SDK streaming to LangChain's streaming API with runnable code examples and verification steps.

3 min read
Framework tutorialsHow-to

From raw OpenAI prompts to LlamaIndex query engines

A step-by-step guide to migrating raw OpenAI SDK calls to LlamaIndex query engines with retrieval, streaming, and production patterns.

4 min read
Framework tutorialsHow-to

Migrating raw OpenAI function calling to LangChain tools

Step-by-step guide to migrate raw OpenAI function calling to LangChain tools with runnable code and verification steps.

5 min read
Framework tutorialsHow-to

Migrating a raw OpenAI chatbot to CrewAI agents

Learn how to migrate an OpenAI chatbot to CrewAI agents with step-by-step code examples, covering agent design, task decomposition, state management, and verification.

4 min read
Framework tutorialsHow-to

From raw OpenAI SDK to AutoGen: adding multi-agent support

A step-by-step guide to migrating from raw OpenAI SDK calls to AutoGen for multi-agent workflows, with runnable code and verification checkpoints.

4 min read
Framework tutorialsGuide

From openai.ChatCompletion to LlamaIndex: what changes

A practical migration guide for engineers moving from raw OpenAI ChatCompletion calls to LlamaIndex, covering client setup, streaming, tool calling, and common pitfalls.

3 min read
Framework tutorialsGuide

When to migrate off the raw OpenAI SDK (and when not to)

A practical decision guide for engineers weighing when to migrate off the raw OpenAI SDK to a framework or abstraction, with code and pitfalls.

4 min read
Framework tutorialsHow-to

Migrating the raw OpenAI SDK to LangChain step by step

Step-by-step guide to migrate OpenAI SDK code to LangChain without rewrites. Swap clients, adopt chains, and verify behavior with runnable examples.

3 min read
Framework tutorialsHow-to

Migrating a raw OpenAI SDK app to support multiple providers

Learn how to migrate openai sdk app to multi-provider support with concrete steps, runnable code, and verification tips for backend engineers.

4 min read