diff --git a/.github/ISSUE_TEMPLATE/agent-change.md b/.github/ISSUE_TEMPLATE/agent-change.md index 8be34a6a..430e2173 100644 --- a/.github/ISSUE_TEMPLATE/agent-change.md +++ b/.github/ISSUE_TEMPLATE/agent-change.md @@ -24,4 +24,4 @@ title: "[Agent] " - + diff --git a/.github/workflows/agent-issue-trigger.yml b/.github/workflows/agent-issue-trigger.yml index 1c2d140e..96b96928 100644 --- a/.github/workflows/agent-issue-trigger.yml +++ b/.github/workflows/agent-issue-trigger.yml @@ -41,8 +41,16 @@ jobs: issue_json="$(gh api "repos/opensensor/lightNVR/issues/${ISSUE_NUMBER}")" issue_title="$(jq -r .title <<< "$issue_json")" issue_body="$(jq -r '.body // "" | .[0:16000]' <<< "$issue_json")" + model="glm-5.3" + spec="automation/agent-harness/glm.yaml" + if jq -e '.labels | any(.name == "agent-kimi")' <<< "$issue_json" >/dev/null; then + model="kimi-k3" + spec="automation/agent-harness/kimi.yaml" + fi + echo "Launching issue #${ISSUE_NUMBER} with ${model}" + echo "Issue #${ISSUE_NUMBER}: ${model}" >> "$GITHUB_STEP_SUMMARY" session_json="$(doctl harness-runtime create \ - --spec automation/agent-harness/kimi.yaml \ + --spec "$spec" \ --name "$session_name" \ --interactive=false -o json)" session_id="$(jq -r '.session_id // empty' <<< "$session_json")" diff --git a/automation/agent-harness/glm.yaml b/automation/agent-harness/glm.yaml new file mode 100644 index 00000000..94e8b520 --- /dev/null +++ b/automation/agent-harness/glm.yaml @@ -0,0 +1,13 @@ +name: lightnvr-public-issue-glm +agent: opencode +size: mars-2vcpu-4gb +idle_timeout: 30m +repos: + - opensensor/lightNVR +env: + HARNESS_INFERENCE_MODEL: glm-5.3 +secrets: + HARNESS_INFERENCE_API_KEY: ${HARNESS_INFERENCE_API_KEY} + GIT_DEPLOY_KEY_B64: ${GIT_DEPLOY_KEY_B64} +permissions: + default: allow