Skip to content

Support DeepSeek

Support DeepSeek #93

Triggered via pull request February 8, 2025 08:22
@Louis-7Louis-7
synchronize #68
development
Status Success
Total duration 13s
Artifacts

pr-code-review.yml

on: pull_request
code-review
3s
code-review
Fit to window
Zoom out
Zoom in

Annotations

2 errors
code-review
The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }). { name: 'event', id: '13213908802', err: { type: 'OpenAIError', message: "The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).", stack: "Error: The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).\n" + ' at new AzureOpenAI (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:148589:19)\n' + ' at new DeepSeekEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141429:23)\n' + ' at CodeReviewFactory.createEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141048:20)\n' + ' at new CodeReview (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141121:69)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140866:38\n' + ' at step (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140836:23)\n' + ' at Object.next (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140817:53)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140811:71\n' + ' at new Promise (<anonymous>)\n' + ' at __webpack_modules__.87868.__awaiter (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140807:12)', event: { id: '13213908802', name: 'pull_request', payload: { action: 'synchronize', after: 'b733ca1c5d0f574d0b89d98b487ee1f467ca22e0', before: 'af22b666f768d51d4b3c59b8c1e97768f119b1d9', number: 68, pull_request: { _links: { comments: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/issues/68/comments' }, commits: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/pulls/68/commits' }, html: { href: 'https://github.com/Louis-7/ai-code-review/pull/68' }, issue: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/issues/68' }, review_comment: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/pulls/comments{/number}' }, review_comments: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/pulls/68/comments' }, self: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/pulls/68' }, statuses: { href: 'https://api.github.com/repos/Louis-7/ai-code-review/statuses/b733ca1c5d0f574d0b89d98b487ee1f467ca22e0' } }, active_lock_reason: null, additions: 444, assignee: null, assignees: [], author_association: 'OWNER', auto_merge: null, base: { label: 'Louis-7:main', ref: 'main', repo: { allow_auto_merge: false, allow_forking: true, allow_merge_commit: true, allow_rebase_merge: true, allow_squash_merge: true, allow_update_branch: false, archive_url: 'https://api.github.com/repos/Louis-7/ai-code-review/{archive_format}{/ref}', archived: false, assignees_url: 'https://api.github.com/repos/Louis-7/ai-code-review/assignees{/user}', blobs_url: 'https://api.github.com/repos/Louis-7/ai-code-review/git/blobs{/sha}',
code-review
Error: The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }). at new AzureOpenAI (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:148589:19) at new DeepSeekEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141429:23) at CodeReviewFactory.createEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141048:20) at new CodeReview (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141121:69) at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140866:38 at step (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140836:23) at Object.next (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140817:53) at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140811:71 at new Promise (<anonymous>) at __webpack_modules__.87868.__awaiter (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140807:12) { err: { type: 'AggregateError', message: '\n' + " Error: The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).\n" + ' at new AzureOpenAI (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:148589:19)\n' + ' at new DeepSeekEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141429:23)\n' + ' at CodeReviewFactory.createEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141048:20)\n' + ' at new CodeReview (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141121:69)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140866:38\n' + ' at step (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140836:23)\n' + ' at Object.next (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140817:53)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140811:71\n' + ' at new Promise (<anonymous>)\n' + ' at __webpack_modules__.87868.__awaiter (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140807:12)', stack: 'AggregateError: \n' + " Error: The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' }).\n" + ' at new AzureOpenAI (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:148589:19)\n' + ' at new DeepSeekEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141429:23)\n' + ' at CodeReviewFactory.createEngine (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141048:20)\n' + ' at new CodeReview (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:141121:69)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140866:38\n' + ' at step (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140836:23)\n' + ' at Object.next (/home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140817:53)\n' + ' at /home/runner/work/_actions/Louis-7/ai-code-review/development/action/index.js:140811:71\n' + ' at new Promise (<anonymous>)\n' + ' at _