728x90 DatetimeOutputParser1 [langchain공부] DatetimeOutputParser (datetime으로 결과도출!!) from langchain.output_parsers import DatetimeOutputParser ## 위 함수가 추가되었다!!!! from langchain.output_parsers import CommaSeparatedListOutputParser from langchain.prompts import PromptTemplate from langchain_openai import ChatOpenAI openai_api_key = '내 키' model = "gpt-3.5-turbo" output_parser = DatetimeOutputParser() format_instructions = output_parser.get_format_instructions() prompt = PromptTempl.. 2024. 2. 3. 이전 1 다음 728x90