Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@
"@types/bluebird": "^3.5.38",
"@types/sinon-chai": "^3.2.9",
"bluebird": "^3.7.2",
"openai": "^3.2.1"
"openai": "^4.0.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading to openai v4 is a major breaking change. The current code in src/openaiservice.ts and src/test/suite/extension.test.ts uses the v3 API (e.g., Configuration, OpenAIApi, createChatCompletion), which is incompatible with v4. You must refactor the OpenAI client usage to use the new OpenAI class and chat.completions.create method. Merging this PR without these changes will break the extension. Refer to the v3 to v4 migration guide for details.

}
}
Loading