Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sdks/ts): Fix codegen issue #374

Merged
merged 2 commits into from
May 31, 2024
Merged

fix(sdks/ts): Fix codegen issue #374

merged 2 commits into from
May 31, 2024

Conversation

creatorrr
Copy link
Contributor

@creatorrr creatorrr commented May 31, 2024

Signed-off-by: Diwank Tomer [email protected]


🚀 This description was created by Ellipsis for commit 9b42b6b

Summary:

This PR updates the code generation script for better YAML formatting, adds new UUID models, and simplifies chat message models in the TypeScript SDK.

Key points:

  • Updated openapi-codegen script in package.json to format YAML input correctly.
  • Added new model and schema files for job_id, memory_id, and tool_id with UUID format.
  • Simplified ChatMLMessage and InputChatMLMessage models and schemas to have content as a string only.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 9b42b6b in 1 minute and 53 seconds

More details
  • Looked at 249 lines of code in 13 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. sdks/ts/package.json:78
  • Draft comment:
    The change in the openapi-codegen script to use yq -o=json ensures compatibility with the openapi tool's input requirements. This is a good fix to ensure the OpenAPI spec is correctly parsed.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR modifies the openapi-codegen script in package.json to ensure the yq command outputs JSON format, which is likely needed for the openapi tool to correctly parse and generate code. This change seems appropriate given the context of generating API client code from an OpenAPI specification.

Workflow ID: wflow_GM2hfVxKO3BsGz4Y


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@creatorrr creatorrr merged commit 33d3836 into dev May 31, 2024
6 of 9 checks passed
@creatorrr creatorrr deleted the x/codegen-issue branch May 31, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant