admin管理员组

文章数量:1130349

通过豆包API接口实现LangChian

输出conversation_chain memory

import os
from langchain.llms.base import LLM
from langchain.chains import LLMChain, ConversationChain
from langchain.prompts import PromptTemplate
from openai import OpenAI
from pydantic import BaseModel, Extra

from langchain.memory import ConversationBufferMemory

通过豆包API接口实现LangChian

输出conversation_chain memory

import os
from langchain.llms.base import LLM
from langchain.chains import LLMChain, ConversationChain
from langchain.prompts import PromptTemplate
from openai import OpenAI
from pydantic import BaseModel, Extra

from langchain.memory import ConversationBufferMemory

本文标签: 豆包接口apimemoryLangChian