ultralytics-actions 0.0.87__py3-none-any.whl → 0.0.88__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- actions/__init__.py +1 -1
- actions/first_interaction.py +1 -1
- actions/summarize_pr.py +1 -1
- actions/summarize_release.py +1 -1
- actions/utils/openai_utils.py +11 -2
- {ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/METADATA +6 -6
- ultralytics_actions-0.0.88.dist-info/RECORD +18 -0
- ultralytics_actions-0.0.87.dist-info/RECORD +0 -18
- {ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/WHEEL +0 -0
- {ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/licenses/LICENSE +0 -0
- {ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/first_interaction.py
CHANGED
@@ -165,7 +165,7 @@ YOUR RESPONSE (label names only):
|
|
165
165
|
},
|
166
166
|
{"role": "user", "content": prompt},
|
167
167
|
]
|
168
|
-
suggested_labels = get_completion(messages, temperature=0
|
168
|
+
suggested_labels = get_completion(messages, temperature=1.0)
|
169
169
|
if "none" in suggested_labels.lower():
|
170
170
|
return []
|
171
171
|
|
actions/summarize_pr.py
CHANGED
@@ -89,7 +89,7 @@ def generate_pr_summary(repository, diff_text):
|
|
89
89
|
f"\n\nHere's the PR diff:\n\n{diff_text[:limit]}",
|
90
90
|
},
|
91
91
|
]
|
92
|
-
reply = get_completion(messages, temperature=0
|
92
|
+
reply = get_completion(messages, temperature=1.0)
|
93
93
|
if len(diff_text) > limit:
|
94
94
|
reply = "**WARNING ⚠️** this PR is very large, summary may not cover all changes.\n\n" + reply
|
95
95
|
return SUMMARY_START + reply
|
actions/summarize_release.py
CHANGED
@@ -137,7 +137,7 @@ def generate_release_summary(
|
|
137
137
|
},
|
138
138
|
]
|
139
139
|
# print(messages[-1]["content"]) # for debug
|
140
|
-
return get_completion(messages, temperature=0
|
140
|
+
return get_completion(messages, temperature=1.0) + release_suffix
|
141
141
|
|
142
142
|
|
143
143
|
def create_github_release(event, tag_name: str, name: str, body: str):
|
actions/utils/openai_utils.py
CHANGED
@@ -9,7 +9,7 @@ import requests
|
|
9
9
|
from actions.utils.common_utils import check_links_in_string
|
10
10
|
|
11
11
|
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
12
|
-
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-
|
12
|
+
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-5-2025-08-07")
|
13
13
|
SYSTEM_PROMPT_ADDITION = """
|
14
14
|
Guidance:
|
15
15
|
- Ultralytics Branding: Use YOLO11, YOLO12, etc., not YOLOv11, YOLOv12 (only older versions like YOLOv10 have a v). Always capitalize "HUB" in "Ultralytics HUB"; use "Ultralytics HUB", not "The Ultralytics HUB".
|
@@ -31,7 +31,7 @@ def get_completion(
|
|
31
31
|
messages: List[Dict[str, str]],
|
32
32
|
check_links: bool = True,
|
33
33
|
remove: List[str] = (" @giscus[bot]",), # strings to remove from response
|
34
|
-
temperature: float = 0
|
34
|
+
temperature: float = 1.0, # note GPT-5 requires temperature=1.0
|
35
35
|
) -> str:
|
36
36
|
"""Generates a completion using OpenAI's API based on input messages."""
|
37
37
|
assert OPENAI_API_KEY, "OpenAI API key is required."
|
@@ -67,3 +67,12 @@ def get_completion(
|
|
67
67
|
check_links = False # automatically accept the last message
|
68
68
|
|
69
69
|
return content
|
70
|
+
|
71
|
+
|
72
|
+
if __name__ == "__main__":
|
73
|
+
messages = [
|
74
|
+
{"role": "system", "content": "You are a helpful AI assistant."},
|
75
|
+
{"role": "user", "content": "Explain how to export a YOLO11 model to CoreML."},
|
76
|
+
]
|
77
|
+
response = get_completion(messages)
|
78
|
+
print(response)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.88
|
4
4
|
Summary: Ultralytics Actions for GitHub automation and PR management.
|
5
5
|
Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
|
6
6
|
Maintainer-email: Ultralytics <hello@ultralytics.com>
|
@@ -64,8 +64,8 @@ Ultralytics Actions automatically applies formats, updates, and enhancements usi
|
|
64
64
|
- **Swift Code:** Formatted with [`swift-format`](https://github.com/swiftlang/swift-format) to maintain a uniform coding style across Swift projects. _(Note: Requires the `macos-latest` runner.)_
|
65
65
|
- **Spell Check:** Common misspellings are caught using [codespell](https://github.com/codespell-project/codespell).
|
66
66
|
- **Broken Links Check:** Broken links in documentation and Markdown files are identified using [Lychee](https://github.com/lycheeverse/lychee).
|
67
|
-
- **PR Summary:** Concise Pull Request summaries are generated using [OpenAI](https://openai.com/) GPT-
|
68
|
-
- **Auto-labeling:** Relevant labels are applied to issues and pull requests via [OpenAI](https://openai.com/) GPT-
|
67
|
+
- **PR Summary:** Concise Pull Request summaries are generated using [OpenAI](https://openai.com/) GPT-5, improving clarity and review efficiency.
|
68
|
+
- **Auto-labeling:** Relevant labels are applied to issues and pull requests via [OpenAI](https://openai.com/) GPT-5 for intelligent categorization.
|
69
69
|
|
70
70
|
## 🛠️ How It Works
|
71
71
|
|
@@ -74,9 +74,9 @@ Ultralytics Actions triggers on various GitHub events to streamline workflows:
|
|
74
74
|
- **Push Events:** Automatically formats code when changes are pushed to the `main` branch.
|
75
75
|
- **Pull Requests:**
|
76
76
|
- Ensures contributions meet formatting standards before merging.
|
77
|
-
- Generates a concise summary of changes using GPT-
|
78
|
-
- Applies relevant labels using GPT-
|
79
|
-
- **Issues:** Automatically applies relevant labels using GPT-
|
77
|
+
- Generates a concise summary of changes using GPT-5.
|
78
|
+
- Applies relevant labels using GPT-5 for intelligent categorization.
|
79
|
+
- **Issues:** Automatically applies relevant labels using GPT-5 when new issues are created.
|
80
80
|
|
81
81
|
These automated actions help maintain high code quality, improve documentation clarity, and streamline the review process by providing consistent formatting, informative summaries, and appropriate categorization.
|
82
82
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
actions/__init__.py,sha256=XYbXnBsSqqob2OwWSAmmNaOO9ZPQdTs5DGAntrCj6Cc,742
|
2
|
+
actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
|
3
|
+
actions/first_interaction.py,sha256=VD7w_x-qoRcd6Cgm80pS1C6Ax_HTSfSfBYWvHK2b5ec,16309
|
4
|
+
actions/summarize_pr.py,sha256=K7Kf22AspUY10GtLUK8DhKgXz2yEDIE3BjpLgPn6niQ,10463
|
5
|
+
actions/summarize_release.py,sha256=BM2kcnqGp16n-6uSdGKjKhrbqJLtkvbHqOIZFFs7nmY,8635
|
6
|
+
actions/update_file_headers.py,sha256=dAu8RWOn-CkuFZHa5LT1-BvNxYX4FRQe2B1UDAjvG3I,6648
|
7
|
+
actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
|
8
|
+
actions/utils/__init__.py,sha256=7k4cmFX0Td99Uzgsd8Mm-E0xq5kQ5ZJoPM_oGCVD4CU,804
|
9
|
+
actions/utils/common_utils.py,sha256=6EE0aTLVxel-Uck_QcFb48D-kkxxohWEof2F2oxLIq4,11867
|
10
|
+
actions/utils/github_utils.py,sha256=wjivM9FPZwaItXpQiYbGbnGdK6v4ayLEFvQT2xhRLq4,8202
|
11
|
+
actions/utils/openai_utils.py,sha256=SsxX2_OO6pGczWKCyf2QVKvZXVzMBC5fPO0uV-h1Ba4,3225
|
12
|
+
actions/utils/version_utils.py,sha256=lKY2lLtYdxejKvqD9hFJiARMrYMHnP_KC_zmcLUmD20,3188
|
13
|
+
ultralytics_actions-0.0.88.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
14
|
+
ultralytics_actions-0.0.88.dist-info/METADATA,sha256=MV87PGy8RVCvlpxz39wYFUapGbDLlXvDXzd1CWMJ3GU,11628
|
15
|
+
ultralytics_actions-0.0.88.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
ultralytics_actions-0.0.88.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
|
17
|
+
ultralytics_actions-0.0.88.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
18
|
+
ultralytics_actions-0.0.88.dist-info/RECORD,,
|
@@ -1,18 +0,0 @@
|
|
1
|
-
actions/__init__.py,sha256=iZGs4EymP-GRcB_IlQyXcL01X44W_z7njJh-rzKyocs,742
|
2
|
-
actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
|
3
|
-
actions/first_interaction.py,sha256=whphdBrWkcWRt6RgOeK2dUoGq3aBTqttQdokxVjkye4,16309
|
4
|
-
actions/summarize_pr.py,sha256=NCaDSbw4PVoRbPJzji_Ua2HadI2pn7QOE_dy3VK9_cc,10463
|
5
|
-
actions/summarize_release.py,sha256=JUGlQ4c5E5Ya_kpYSn-Hs_E1omdFWgsvZLIxOic1qEI,8635
|
6
|
-
actions/update_file_headers.py,sha256=dAu8RWOn-CkuFZHa5LT1-BvNxYX4FRQe2B1UDAjvG3I,6648
|
7
|
-
actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
|
8
|
-
actions/utils/__init__.py,sha256=7k4cmFX0Td99Uzgsd8Mm-E0xq5kQ5ZJoPM_oGCVD4CU,804
|
9
|
-
actions/utils/common_utils.py,sha256=6EE0aTLVxel-Uck_QcFb48D-kkxxohWEof2F2oxLIq4,11867
|
10
|
-
actions/utils/github_utils.py,sha256=wjivM9FPZwaItXpQiYbGbnGdK6v4ayLEFvQT2xhRLq4,8202
|
11
|
-
actions/utils/openai_utils.py,sha256=09kW4K2LOc6KsWz5tijf2Piinhu3PIKPDVkRC3KyIxU,2943
|
12
|
-
actions/utils/version_utils.py,sha256=lKY2lLtYdxejKvqD9hFJiARMrYMHnP_KC_zmcLUmD20,3188
|
13
|
-
ultralytics_actions-0.0.87.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
14
|
-
ultralytics_actions-0.0.87.dist-info/METADATA,sha256=UjfwmY5zEuTkZqB0qy9CRk0jrlVlXVdlo0QwJ7V6xn0,11638
|
15
|
-
ultralytics_actions-0.0.87.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
-
ultralytics_actions-0.0.87.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
|
17
|
-
ultralytics_actions-0.0.87.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
18
|
-
ultralytics_actions-0.0.87.dist-info/RECORD,,
|
File without changes
|
{ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/entry_points.txt
RENAMED
File without changes
|
{ultralytics_actions-0.0.87.dist-info → ultralytics_actions-0.0.88.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|