From 952ef2ca6249d2176c3e412b2a4b011104f2a579 Mon Sep 17 00:00:00 2001 From: granawkins Date: Fri, 5 Apr 2024 13:06:44 +0700 Subject: [PATCH] ignore typing/spice error for now --- mentat/llm_api_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mentat/llm_api_handler.py b/mentat/llm_api_handler.py index de910eb4c..421676e5a 100644 --- a/mentat/llm_api_handler.py +++ b/mentat/llm_api_handler.py @@ -353,7 +353,8 @@ async def call_llm_api( # TODO: make spice message format and use across codebase consistently _messages = [ - {"role": cast(str, message["role"]), "content": cast(str, message["content"])} for message in messages + {"role": cast(str, message["role"]), "content": cast(str, message["content"])} # type: ignore + for message in messages ] if "type" in response_format and response_format["type"] == "json_object": _response_format = {"type": "json_object"}