Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Comments

fix(word generator): error JSON schema invalid when using Claude model#72

Merged
dat-devuap merged 1 commit intomainfrom
plugin-word-generator
Jan 19, 2025
Merged

fix(word generator): error JSON schema invalid when using Claude model#72
dat-devuap merged 1 commit intomainfrom
plugin-word-generator

Conversation

@dat-devuap
Copy link
Contributor

@dat-devuap dat-devuap commented Jan 19, 2025

Bug Report:
claude_error

RCA:

  • The issue is caused by the JSON validator which did not allow using $ref in the function calling definition for recursive object (subsection)
    image

Changes:

  • Update input params by removing subsection property
  • Add sectionId and parentSectionId to sections object.
  • Add function to construct section hierarchy.

Demo:
https://www.loom.com/share/d97d2972094542ba9e00374ef583dc09?sid=c14ebc8b-bc38-4062-acab-46c590123d12

Note:
Reference the changes in TypingMind Plugin:
TypingMind/plugin-word-generator@4175a5f

@dat-devuap dat-devuap requested a review from trungdq88 January 19, 2025 04:58
@dat-devuap dat-devuap merged commit 473534d into main Jan 19, 2025
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant