ultralytics-actions 0.0.87__py3-none-any.whl → 0.0.89__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 CHANGED
@@ -22,4 +22,4 @@
22
22
  # ├── test_summarize_pr.py
23
23
  # └── ...
24
24
 
25
- __version__ = "0.0.87"
25
+ __version__ = "0.0.89"
@@ -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.2)
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.2)
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
@@ -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.2) + release_suffix
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):
@@ -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-4.1-2025-04-14")
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,8 @@ 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.7, # default temperature value
34
+ temperature: float = 1.0, # note GPT-5 requires temperature=1.0
35
+ reasoning_effort: str = None, # reasoning effort for GPT-5 models: minimal, low, medium, high
35
36
  ) -> str:
36
37
  """Generates a completion using OpenAI's API based on input messages."""
37
38
  assert OPENAI_API_KEY, "OpenAI API key is required."
@@ -50,6 +51,10 @@ def get_completion(
50
51
  "temperature": temperature,
51
52
  }
52
53
 
54
+ # Add reasoning_effort for GPT-5 models
55
+ if "gpt-5" in OPENAI_MODEL:
56
+ data["reasoning_effort"] = reasoning_effort or "minimal" # Default to minimal for GPT-5
57
+
53
58
  r = requests.post(url, json=data, headers=headers)
54
59
  r.raise_for_status()
55
60
  content = r.json()["choices"][0]["message"]["content"].strip()
@@ -67,3 +72,12 @@ def get_completion(
67
72
  check_links = False # automatically accept the last message
68
73
 
69
74
  return content
75
+
76
+
77
+ if __name__ == "__main__":
78
+ messages = [
79
+ {"role": "system", "content": "You are a helpful AI assistant."},
80
+ {"role": "user", "content": "Explain how to export a YOLO11 model to CoreML."},
81
+ ]
82
+ response = get_completion(messages)
83
+ print(response)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultralytics-actions
3
- Version: 0.0.87
3
+ Version: 0.0.89
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-4.1, improving clarity and review efficiency.
68
- - **Auto-labeling:** Relevant labels are applied to issues and pull requests via [OpenAI](https://openai.com/) GPT-4.1 for intelligent categorization.
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-4.1.
78
- - Applies relevant labels using GPT-4.1 for intelligent categorization.
79
- - **Issues:** Automatically applies relevant labels using GPT-4.1 when new issues are created.
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=lL9lglZt7yFMrXiVZMI75hSKNX09luOHtZKALNSgMiA,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=ViOv5zFqLzr9xQT4_pnZ4R5kHqqBxW6jOJCFuBjTML8,3510
12
+ actions/utils/version_utils.py,sha256=lKY2lLtYdxejKvqD9hFJiARMrYMHnP_KC_zmcLUmD20,3188
13
+ ultralytics_actions-0.0.89.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ ultralytics_actions-0.0.89.dist-info/METADATA,sha256=3doWMWUouVEaD1CtAA_IDK2BJxGbBxOPnyxGaFMk3qQ,11628
15
+ ultralytics_actions-0.0.89.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ ultralytics_actions-0.0.89.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
17
+ ultralytics_actions-0.0.89.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
18
+ ultralytics_actions-0.0.89.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,,