Skip to content

Commit dc28e91

Browse files
committed
adjust code format
1 parent 35e3b5d commit dc28e91

14 files changed

+25
-28
lines changed

.github/ISSUE_TEMPLATE/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: "📑 Read online docs"
4-
about: Find tutorials, use cases, and guides in the OpenManus documentation.
4+
about: Find tutorials, use cases, and guides in the OpenManus documentation.
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
name: "🤔 Request new features"
3-
about: Suggest ideas or features you’d like to see implemented in OpenManus.
4-
title: ''
5-
labels: kind/features
6-
assignees: ''
2+
name: "🤔 Request new features"
3+
about: Suggest ideas or features you’d like to see implemented in OpenManus.
4+
title: ''
5+
labels: kind/features
6+
assignees: ''
77
---
88

99
**Feature description**
1010
<!-- Provide a clear and concise description of the proposed feature -->
1111

1212
**Your Feature**
1313
<!-- Explain your idea or implementation process. Optionally, include a Pull Request URL. -->
14-
<!-- Ensure accompanying docs/tests/examples are provided for review. -->
14+
<!-- Ensure accompanying docs/tests/examples are provided for review. -->

.github/ISSUE_TEMPLATE/show_me_the_bug.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: "🪲 Show me the Bug"
3-
about: Report a bug encountered while using OpenManus and seek assistance.
2+
name: "🪲 Show me the Bug"
3+
about: Report a bug encountered while using OpenManus and seek assistance.
44
title: ''
5-
labels: kind/bug
5+
labels: kind/bug
66
assignees: ''
77
---
88

@@ -22,4 +22,4 @@ assignees: ''
2222
- Installation method (e.g., `pip install -r requirements.txt` or `pip install -e .`):
2323

2424
**Screenshots or logs**
25-
<!-- Attach screenshots or logs to help diagnose the issue -->
25+
<!-- Attach screenshots or logs to help diagnose the issue -->

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
<!-- Include screenshots or logs of unit tests or running results. -->
1515

1616
**Other**
17-
<!-- Additional notes about this PR. -->
17+
<!-- Additional notes about this PR. -->

.github/workflows/build-package.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3131
run: |
3232
python setup.py bdist_wheel sdist
33-
twine upload dist/*
33+
twine upload dist/*

.github/workflows/pre-commit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
python -m pip install --upgrade pip
2424
pip install pre-commit black==23.1.0 isort==5.12.0 autoflake==2.0.1
2525
- name: Run pre-commit hooks
26-
run: pre-commit run --all-files
26+
run: pre-commit run --all-files

.github/workflows/stale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
close-issue-message: "This issue was closed due to 45 days of inactivity. Reopen if still relevant."
2121
days-before-pr-stale: -1
2222
days-before-pr-close: -1
23-
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/unittest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
name: pytest-results-${{ matrix.python-version }}
4545
path: ./unittest.txt
4646
retention-days: 3
47-
if: ${{ always() }}
47+
if: ${{ always() }}

README_zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a href="https://discord.gg/6dn7Sa3a"><img src="https://dcbadge.vercel.app/api/server/DYn29wFk9z?style=flat" alt="Discord Follow"></a>
77
</p>
88

9-
# OpenManus 🙋
9+
# OpenManus 🙋
1010

1111
Manus 非常棒,但 OpenManus 无需邀请码即可实现任何创意 🛫!
1212

@@ -16,7 +16,7 @@ Manus 非常棒,但 OpenManus 无需邀请码即可实现任何创意 🛫!
1616

1717
用 OpenManus 开启你的智能体之旅吧!
1818

19-
## 项目演示
19+
## 项目演示
2020

2121
<video src="https://private-user-images.githubusercontent.com/61239030/420168772-6dcfd0d2-9142-45d9-b74e-d10aa75073c6.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEzMTgwNTksIm5iZiI6MTc0MTMxNzc1OSwicGF0aCI6Ii82MTIzOTAzMC80MjAxNjg3NzItNmRjZmQwZDItOTE0Mi00NWQ5LWI3NGUtZDEwYWE3NTA3M2M2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzA3VDAzMjIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiZjFkNjlmYWNjMmEzOTliM2Y3M2VlYjgyNDRlZDJmOWE3NWZhZjE1MzhiZWY4YmQ3NjdkNTYwYTU5ZDA2MzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UuHQCgWYkh0OQq9qsUWqGsUbhG3i9jcZDAMeHjLt5T4" data-canonical-src="https://private-user-images.githubusercontent.com/61239030/420168772-6dcfd0d2-9142-45d9-b74e-d10aa75073c6.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEzMTgwNTksIm5iZiI6MTc0MTMxNzc1OSwicGF0aCI6Ii82MTIzOTAzMC80MjAxNjg3NzItNmRjZmQwZDItOTE0Mi00NWQ5LWI3NGUtZDEwYWE3NTA3M2M2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzA3VDAzMjIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdiZjFkNjlmYWNjMmEzOTliM2Y3M2VlYjgyNDRlZDJmOWE3NWZhZjE1MzhiZWY4YmQ3NjdkNTYwYTU5ZDA2MzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UuHQCgWYkh0OQq9qsUWqGsUbhG3i9jcZDAMeHjLt5T4" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px"></video>
2222

app/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class LLMSettings(BaseModel):
2424
api_type: str = Field(..., description="AzureOpenai or Openai")
2525
api_version: str = Field(..., description="Azure Openai version if AzureOpenai")
2626

27+
2728
class AppConfig(BaseModel):
2829
llm: Dict[str, LLMSettings]
2930

@@ -79,7 +80,6 @@ def _load_initial_config(self):
7980
"temperature": base_llm.get("temperature", 1.0),
8081
"api_type": base_llm.get("api_type", ""),
8182
"api_version": base_llm.get("api_version", ""),
82-
8383
}
8484

8585
config_dict = {

app/llm.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
from openai import (
44
APIError,
5+
AsyncAzureOpenAI,
56
AsyncOpenAI,
67
AuthenticationError,
78
OpenAIError,
89
RateLimitError,
9-
AsyncAzureOpenAI
1010
)
1111
from tenacity import retry, stop_after_attempt, wait_random_exponential
1212

@@ -44,12 +44,10 @@ def __init__(
4444
self.client = AsyncAzureOpenAI(
4545
base_url=self.base_url,
4646
api_key=self.api_key,
47-
api_version=self.api_version
47+
api_version=self.api_version,
4848
)
4949
else:
50-
self.client = AsyncOpenAI(
51-
api_key=self.api_key, base_url=self.base_url
52-
)
50+
self.client = AsyncOpenAI(api_key=self.api_key, base_url=self.base_url)
5351

5452
@staticmethod
5553
def format_messages(messages: List[Union[dict, Message]]) -> List[dict]:

app/tool/file_saver.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
import os
32

43
import aiofiles
@@ -58,4 +57,3 @@ async def execute(self, content: str, file_path: str, mode: str = "w") -> str:
5857
return f"Content successfully saved to {file_path}"
5958
except Exception as e:
6059
return f"Error saving file: {str(e)}"
61-

config/config.example.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ temperature = 0.0
99
# [llm] #AZURE OPENAI:
1010
# api_type= 'azure'
1111
# model = "YOUR_MODEL_NAME" #"gpt-4o-mini"
12-
# base_url = "{YOUR_AZURE_ENDPOINT.rstrip('/')}/openai/deployments/{AZURE_DEPOLYMENT_ID}"
12+
# base_url = "{YOUR_AZURE_ENDPOINT.rstrip('/')}/openai/deployments/{AZURE_DEPOLYMENT_ID}"
1313
# api_key = "AZURE API KEY"
1414
# max_tokens = 8096
1515
# temperature = 0.0

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import find_packages, setup
2+
23

34
with open("README.md", "r", encoding="utf-8") as fh:
45
long_description = fh.read()

0 commit comments

Comments
 (0)