TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Unbug – A free, automatic bug detector using GPT-3.5 on GitHub CI

4 点作者 funerr大约 2 年前
It's an automatic bug detector for GitHub CI, leveraging OpenAI's GPT-3.5 Turbo. It adds an extra layer of scrutiny to every commit, surpassing the capabilities of local IDE checks. I've found it invaluable for my own projects and believe it can benefit teams too. It's currently in its early stages, so proceed with a bit of caution and don't hesitate to share your feedback. You're welcome to contribute (MIT).

1 comment

peter_l_downs大约 2 年前
Since you say you&#x27;ve found it invaluable for your own projects, can you explain why? What bugs has it found for you that you wouldn&#x27;t immediately notice by running code or unit tests?<p>I ask because in the example, you ask it to find bugs in a script that <i>immediately</i> fails when you run it. So I&#x27;m not sure what the value add is here.<p><pre><code> $ ipython Python 3.11.3 (main, Apr 7 2023, 21:05:46) [Clang 14.0.0 (clang-1400.0.29.202)] Type &#x27;copyright&#x27;, &#x27;credits&#x27; or &#x27;license&#x27; for more information IPython 8.13.2 -- An enhanced Interactive Python. Type &#x27;?&#x27; for help. In [1]: def greet(name, age): ...: print(&quot;hello, my name is {} and I am {} years old&quot;.format(name)) ...: In [2]: greet(&quot;John&quot;, 25) --------------------------------------------------------------------------- IndexError Traceback (most recent call last) Cell In[2], line 1 ----&gt; 1 greet(&quot;John&quot;, 25) Cell In[1], line 2, in greet(name, age) 1 def greet(name, age): ----&gt; 2 print(&quot;hello, my name is {} and I am {} years old&quot;.format(name)) IndexError: Replacement index 1 out of range for positional args tuple </code></pre> EDIT: For anyone else who is wondering, this is just:<p>system prompt:<p><pre><code> Find bugs in the user&#x27;s code. - Format results as JSON like so: [{&quot;line&quot;:1,&quot;reason&quot;:&quot;short reason&quot;, &quot;type&quot;:&quot;type&quot;},...] - It is better to return an empty array than a mistake (not really a bug). </code></pre> user prompt:<p><pre><code> Here is my code: ${source_code} JSON Result: </code></pre> @funerr why would you even create this and post it here? Is it just to try to market your newsletter? Who do you think would look at this and be impressed?
评论 #36238113 未加载