LangChain Part 1 - Understand Chat Models

Опубликовано: 03 Май 2026
на канале: JUST CODE IT
599
8

🚀 Welcome to Just Code It! Today, we’re kicking off a brand-new tutorial series on LangChain! In this video, we’ll dive into chat models and explore how to use them effectively. 🧠💬

📚 What You’ll Learn:
• How to work with three different chat models: Ollama, OpenAI, and OpenRouter.
• How to configure and interact with models that conform to the OpenAI API standard.
• Step-by-step setup, including installing dependencies, loading environment variables, and invoking chat models.

💡 Highlights:
• Ollama: A lightweight and fast model, perfect for testing and smaller applications.
• OpenAI: The industry standard for chat models—simple to configure and highly capable.
• OpenRouter: A lesser-known gem with free models, offering flexibility through API key and base URL configurations.

🔧 Tech Stack:
• Python
• LangChain Libraries: langchain, langchain-ollama, and langchain-openai.

📢 Coming up next: We’ll explore prompt templates and how to craft effective prompts for your chat models.

🔥 Don’t miss out! Like, comment, and subscribe for more coding tutorials. Have questions? Drop them in the comments, and we’ll get back to you!

Timestamps:
00:00 LangChain Part 1
00:12 Overview of LangChain Chat Models
00:40 Exploring Olama Chat Model
02:27 Using OpenAI with LangChain
02:56 Integrating OpenRouter with LangChain
03:33 Advanced Prompting Techniques
03:44 Conclusion and Next Steps

🎥 Thanks for watching, and let’s Just Code It together! 🚀
🛠️ Useful Links:
🔗 Get the Code: https://github.com/jamesbmour/blog_tu...
🔗 Related LangChain Tutorials:    / @justcodeit77  
🍻 Buy Me a Beer: https://buymeacoffee.com/bmours

#python #langchain #llms #ollama #openai #openrouter #llama #gpt #codingtutorial #coding #codingtutorial