Update OpenAI library to v6.6.0 and change default model to gpt-5-mini#16
Update OpenAI library to v6.6.0 and change default model to gpt-5-mini#16
Conversation
Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
|
@copilot please fix the test. You can try to run them first to see if they even get to work (even if it fails because you are missing an api key). This are the errors: |
Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Fixed in commit 0423b1e. The tests were failing due to two issues:
The build now passes successfully. |
src/verify.ts
Outdated
| export async function verifyPrompt(prompt: string, openai: OpenAI, chatModel: string = "gpt-5-mini"): Promise<StoryResult> { | ||
| const moderator = await openai.moderations.create({ | ||
| model: "omni-moderation-latest", | ||
| model: "omni-moderation-2024-09-26", |
There was a problem hiding this comment.
can we please use latest or whatever is available that means something similar? I don't want to use dated versions that end up expiring.
There was a problem hiding this comment.
Changed to omni-moderation-latest in commit f4ed18e. This will automatically use the latest moderation model without requiring updates when new versions are released.
Co-authored-by: Bullrich <8524599+Bullrich@users.noreply.github.com>
Addressed in commit f4ed18e:
All JSDoc comments now correctly reference |
Update OpenAI library and change default model to gpt-5-mini
Summary
All requested changes have been successfully implemented with fixes for API compatibility and comprehensive documentation:
gpt-5-miniomni-moderation-latestto automatically use the latest version without requiring updatesgpt-5-minionly supports default temperature (1), so temperature parameter is now conditionally omitted for this modelStory,ChatAssistant,ImageGenerator,verifyPrompt), and updated README with detailed API reference including parameters, return types, and usage examplesAll builds and linters pass successfully.
Fixes #14
Original prompt
Fixes #14
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.