修改formatter为OpenAIChatFormatter
This commit is contained in:
@@ -3,7 +3,7 @@ import asyncio
|
||||
|
||||
|
||||
from agentscope.agent import ReActAgent
|
||||
from agentscope.formatter import OllamaChatFormatter
|
||||
from agentscope.formatter import OpenAIChatFormatter
|
||||
from agentscope.memory import InMemoryMemory
|
||||
from agentscope.model import OpenAIChatModel
|
||||
from agentscope.tool import ToolResponse, Toolkit, execute_python_code
|
||||
@@ -29,7 +29,7 @@ async def creating_react_agent() -> None:
|
||||
client_kwargs={"base_url": LLAMA_CPP_BASE_URL}
|
||||
),
|
||||
memory=InMemoryMemory(),
|
||||
formatter=OllamaChatFormatter(),
|
||||
formatter=OpenAIChatFormatter(),
|
||||
toolkit=toolkit,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user