Skip to content

Frostbite22/LangchainCourses

Repository files navigation

Langchain Courses on Deeplearning.AI

These courses are available in deeplearningAI platform freely.

Courses can be found here

Course 1 : LangChain for LLM Application Development

Link to the course

Course 2 : Langchain Chat With your Data

Link to the course

Course 3 : Functions, Tools and Agents with LangChain

Link to course

Instructions

Set OPENAI_API_KEY environment variable as well as GITHUB_TOKEN You can use a .env file for that

Requirements

Install it with uv package management or with pip

uv pip install python-dotenv openai langchain-community langchain-core langchain-openai docarray bs4

Note

The github models marketplace has changed

import os
from openai import OpenAI

token = os.environ["GITHUB_TOKEN"]
endpoint = "https://models.github.ai/inference"
model_name = "openai/o3-mini"

client = OpenAI(
    base_url=endpoint,
    api_key=token,
)

response = client.chat.completions.create(
    messages=[
        {
            "role": "developer",
            "content": "You are a helpful assistant.",
        },
        {
            "role": "user",
            "content": "What is the capital of France?",
        }
    ],
    model=model_name
)

print(response.choices[0].message.content)

About

This repo contains langhcain courses code implementation available in deeplearning AI, using Github marketplace models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors