Repository navigation
Update package20251127 - #1241
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (maybeResponseFormat && text) { | ||
| const parsed = JSON.parse(text); | ||
| if (typeof parsed === "object" && parsed !== null) { | ||
| return parsed; | ||
| const trimmed = text.trim(); | ||
| const match = trimmed.match(/```(?:\w+)?\s*([\s\S]*?)\s*```/); | ||
| const candidate = match ? match[1].trim() : trimmed; | ||
| try { |
There was a problem hiding this comment.
Rebuild lib so anthropic changes ship
The new response-format parsing and default model added here won’t reach users, because the package entry point is lib/index.js and lib/anthropic_agent.js wasn’t regenerated in this commit (it still parses text directly and defaults to claude-3-7-sonnet-20250219). As a result, consumers pulling the published package or running without a fresh build will continue to get the old behavior instead of the markdown-safe parsing and new model. Please rebuild the lib artifacts or adjust the entry point so this change is actually applied.
Useful? React with 👍 / 👎.
No description provided.