Skip to content

Commit 9897957

Browse files
committed
update README and format code
1 parent 487b44f commit 9897957

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ Join our networking group on Feishu and share your experience with other develop
143143
Thanks to [anthropic-computer-use](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo)
144144
and [browser-use](https://github.com/browser-use/browser-use) for providing basic support for this project!
145145

146-
Additionally, we are grateful to [AAAJ](https://github.com/metauto-ai/agent-as-a-judge)
147-
and [MetaGPT](https://github.com/mannaandpoem/MetaGPT).
146+
Additionally, we are grateful to [AAAJ](https://github.com/metauto-ai/agent-as-a-judge), [MetaGPT](https://github.com/mannaandpoem/MetaGPT) and [OpenHands](https://github.com/All-Hands-AI/OpenHands).
148147

149148
OpenManus is built by contributors from MetaGPT. Huge thanks to this agent community!
150149

README_zh.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ python run_flow.py
145145
特别感谢 [anthropic-computer-use](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo)
146146
[browser-use](https://github.com/browser-use/browser-use) 为本项目提供的基础支持!
147147

148-
此外,我们感谢 [AAAJ](https://github.com/metauto-ai/agent-as-a-judge)
149-
[MetaGPT](https://github.com/mannaandpoem/MetaGPT).
148+
此外,我们感谢 [AAAJ](https://github.com/metauto-ai/agent-as-a-judge)[MetaGPT](https://github.com/mannaandpoem/MetaGPT)[OpenHands](https://github.com/All-Hands-AI/OpenHands).
150149

151150
OpenManus 由 MetaGPT 社区的贡献者共同构建,感谢这个充满活力的智能体开发者社区!

app/llm/inference.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
self, config_name: str = "default", llm_config: Optional[LLMSettings] = None
3939
):
4040
if not hasattr(
41-
self, "initialized"
41+
self, "initialized"
4242
): # Only initialize if not already initialized
4343
llm_config = llm_config or config.llm
4444
llm_config = llm_config.get(config_name, llm_config["default"])
@@ -214,7 +214,7 @@ def is_local(self) -> bool:
214214
for substring in ["localhost", "127.0.0.1", "0.0.0.0"]
215215
)
216216
if self.model and (
217-
self.model.startswith("ollama") or "local" in self.model.lower()
217+
self.model.startswith("ollama") or "local" in self.model.lower()
218218
):
219219
return True
220220
return False
@@ -248,7 +248,7 @@ def encode_image(image_path: str) -> str:
248248
return base64.b64encode(image_file.read()).decode("utf-8")
249249

250250
def prepare_messages(
251-
self, text: str, image_path: Optional[str] = None
251+
self, text: str, image_path: Optional[str] = None
252252
) -> List[dict]:
253253
"""
254254
Prepare messages for completion, including multimodal content if needed.
@@ -273,7 +273,7 @@ def prepare_messages(
273273
return messages
274274

275275
def do_multimodal_completion(
276-
self, text: str, image_path: str
276+
self, text: str, image_path: str
277277
) -> Tuple[Any, float, float]:
278278
"""
279279
Perform a multimodal completion with text and image.

0 commit comments

Comments
 (0)