From e9a920f75327a196f2cc9d69c7b3608588d6d728 Mon Sep 17 00:00:00 2001 From: Mark Anthony Cianfrani Date: Mon, 6 Oct 2025 11:14:34 -0400 Subject: [PATCH 1/2] fix: run prepublish --- .github/workflows/publish.yml | 2 +- src/model-id.ts | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d4ee0b5..2523032 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,6 @@ jobs: - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - - run: npm whoami; npm --ignore-scripts publish --provenance + - run: npm whoami; npm publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/src/model-id.ts b/src/model-id.ts index 69a5c6c..5c96d7f 100644 --- a/src/model-id.ts +++ b/src/model-id.ts @@ -12,6 +12,10 @@ export type GitHubModelsChatModelId = | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' + | 'openai/gpt-5' + | 'openai/gpt-5-chat' + | 'openai/gpt-5-mini' + | 'openai/gpt-5-nano' | 'openai/o1' | 'openai/o1-mini' | 'openai/o1-preview' @@ -43,14 +47,6 @@ export type GitHubModelsChatModelId = | 'xai/grok-3' | 'xai/grok-3-mini' | 'microsoft/mai-ds-r1' - | 'microsoft/phi-3.5-mini-instruct' - | 'microsoft/phi-3.5-moe-instruct' - | 'microsoft/phi-3-medium-128k-instruct' - | 'microsoft/phi-3-medium-4k-instruct' - | 'microsoft/phi-3-mini-128k-instruct' - | 'microsoft/phi-3-mini-4k-instruct' - | 'microsoft/phi-3-small-128k-instruct' - | 'microsoft/phi-3-small-8k-instruct' | 'microsoft/phi-4' | 'microsoft/phi-4-mini-instruct' | 'microsoft/phi-4-mini-reasoning' From 2ba9a5aee259bf54959ed30f3155bb69a35c3b65 Mon Sep 17 00:00:00 2001 From: Mark Anthony Cianfrani Date: Mon, 6 Oct 2025 22:17:02 -0400 Subject: [PATCH 2/2] Update .github/workflows/publish.yml Co-authored-by: Marais Rossouw --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2523032..0de225d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,7 @@ jobs: - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.event.release.tag_name || github.event.inputs.tag_name }} - - run: npm whoami; npm publish --provenance + - run: npm run build + - run: npm whoami; npm --ignore-scripts publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}