Skip to content

Instantly share code, notes, and snippets.

View LeninGangwal's full-sized avatar

Lenin Gangwal LeninGangwal

View GitHub Profile
@LeninGangwal
LeninGangwal / shell-gpt.py
Created June 9, 2023 14:28
Shell GPT using Langchain
from langchain.llms import OpenAI
import os
from langchain import LLMChain, PromptTemplate
import sys
import platform
import distro
from langchain.memory import ConversationBufferMemory
def get_llm():
os.environ["OPENAI_API_KEY"] = "sk-abc"