This commit is contained in:
William Fu-Hinthorn
2024-02-09 16:07:23 -08:00
parent 13fb3dfa8b
commit 61a854aabc
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -107,7 +107,6 @@ def _evaluate_expression(expression: str) -> str:
def get_math_tool(llm: ChatOpenAI):
prompt = ChatPromptTemplate.from_messages(
[
("system", _SYSTEM_PROMPT),
+1 -1
View File
@@ -14,8 +14,8 @@ from typing import (
from langchain_core.exceptions import OutputParserException
from langchain_core.messages import BaseMessage
from langchain_core.output_parsers.transform import BaseTransformOutputParser
from langchain_core.tools import BaseTool
from langchain_core.runnables import RunnableConfig
from langchain_core.tools import BaseTool
from typing_extensions import TypedDict
THOUGHT_PATTERN = r"Thought: ([^\n]*)"