Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix: run repository analysis and explain incomplete responses (#279)

kashorin7fb1c9e10a15
diff --git a/.github/automation/analysis.mjs b/.github/automation/analysis.mjs
index a4443944..524f0094 100644
--- a/.github/automation/analysis.mjs
+++ b/.github/automation/analysis.mjs
@@ -80,7 +80,7 @@ export async function analyze(context, { key, model, maxTokens }, request = fetc
const output = await response.json();
const choice = output.choices?.[0];
if (choice?.finish_reason !== 'stop' || typeof choice.message?.content !== 'string' || !choice.message.content.trim()) {
- throw new Error('DeepSeek did not return a complete analysis');
+ throw new Error(`DeepSeek did not return a complete analysis (finish_reason: ${choice?.finish_reason ?? 'missing'})`);
}
return choice.message.content;
}
diff --git a/.github/workflows/repository-analysis.yml b/.github/workflows/repository-analysis.yml
index 244f1ed6..80a6fa64 100644
--- a/.github/workflows/repository-analysis.yml
+++ b/.github/workflows/repository-analysis.yml
@@ -23,8 +23,6 @@ jobs:
if: github.repository == 'hypit-ai/hypit'
runs-on: ubuntu-latest
timeout-minutes: 10
- env:
- ANALYSIS_CONTEXT: ${{ runner.temp }}/hypit-analysis/context.json
steps:
- name: Checkout the trusted workflow implementation
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
@@ -37,10 +35,12 @@ jobs:
package-manager-cache: false
- name: Read the selected issue or PR
env:
+ ANALYSIS_CONTEXT: ${{ runner.temp }}/hypit-analysis/context.json
GH_TOKEN: ${{ github.token }}
run: node .github/automation/analysis.mjs prepare
- name: Analyze and write the run summary
env:
+ ANALYSIS_CONTEXT: ${{ runner.temp }}/hypit-analysis/context.json
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
ANALYSIS_MODEL: deepseek-flash
ANALYSIS_MAX_TOKENS: '8192'