Skip to content

Commit 38f73a4

Browse files
committed
fix formatting
1 parent 4f01bae commit 38f73a4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

vision_agent/agent/easytool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def retrieval(
160160
tool_name = tool_instructions["name"]
161161

162162
parameters = choose_parameter(model, question, tool_usage, previous_log)
163-
if parameters is None: # TODO
163+
if parameters is None: # TODO
164164
pass
165165
tool_results = [{"tool_name": tool_name, "parameters": parameters}]
166166

@@ -212,6 +212,7 @@ class EasyTool(Agent):
212212
>>> print(resp)
213213
>>> "It will travel approximately 31.03 kilometers in 29 minutes."
214214
"""
215+
215216
def __init__(
216217
self,
217218
task_model: Optional[Union[LLM, LMM]] = None,

vision_agent/llm/llm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def __call__(self, input: Union[str, List[Dict[str, str]]]) -> str:
3131
class OpenAILLM(LLM):
3232
r"""An LLM class for any OpenAI LLM model."""
3333

34-
def __init__(self, model_name: str = "gpt-4-turbo-preview", json_mode: bool = False):
34+
def __init__(
35+
self, model_name: str = "gpt-4-turbo-preview", json_mode: bool = False
36+
):
3537
self.model_name = model_name
3638
self.client = OpenAI()
3739
self.json_mode = json_mode
@@ -43,7 +45,7 @@ def generate(self, prompt: str) -> str:
4345
messages=[
4446
{"role": "user", "content": prompt},
4547
],
46-
**kwargs, # type: ignore
48+
**kwargs, # type: ignore
4749
)
4850

4951
return cast(str, response.choices[0].message.content)
@@ -53,7 +55,7 @@ def chat(self, chat: List[Dict[str, str]]) -> str:
5355
response = self.client.chat.completions.create(
5456
model=self.model_name,
5557
messages=chat, # type: ignore
56-
**kwargs, # type: ignore
58+
**kwargs, # type: ignore
5759
)
5860

5961
return cast(str, response.choices[0].message.content)

0 commit comments

Comments
 (0)