Skip to content

feat(assistant): added openai to assist in generating js/ts code and json schemas#231

Merged
waleedlatif1 merged 8 commits intomainfrom
feat/llm
Apr 7, 2025
Merged

feat(assistant): added openai to assist in generating js/ts code and json schemas#231
waleedlatif1 merged 8 commits intomainfrom
feat/llm

Conversation

@waleedlatif1
Copy link
Collaborator

@waleedlatif1 waleedlatif1 commented Apr 6, 2025

  • change hiddenFromSidebar to hideFromToolbar
  • added code generation for the function block's code
  • added ai code gen to custom tools and response format
  • optimize system prompts for js/json generation following our formatting
  • added history, fixed apply to replace instead of append
  • remove unused imports
  • updated styling of chat bar
  • refined system prompts for code generation, resolved PR comments

Description

  • added openai to assist in generating js/ts code (custom tools, function block) and json schemas (response format, custom tool schema)
  • features: chat history, apply, system prompts specific to whether we are doing code generation for js/ts or for a schema, provided examples of our formatting

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Ran many queries and ensured that there were no issues in generating schemas or in generating code.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally and in CI (npm test)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have updated version numbers as needed (if needed)

Security Considerations:

  • My changes do not introduce any new security vulnerabilities
  • I have considered the security implications of my changes

Additional Information:

Untitled2.mov
Untitled.mov

@cubic-dev-ai
Copy link

cubic-dev-ai bot commented Apr 6, 2025

Review this PR on mrge.io

@vercel
Copy link

vercel bot commented Apr 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 1:20am
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 1:20am

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

AI code reviewer found 6 issues

@waleedlatif1 waleedlatif1 merged commit a74c866 into main Apr 7, 2025
5 checks passed
@waleedlatif1 waleedlatif1 deleted the feat/llm branch April 11, 2025 05:25
RadoBoiii pushed a commit to RadoBoiii/sim-fork that referenced this pull request Apr 13, 2025
…json schemas (simstudioai#231)

* change hiddenFromSidebar to hideFromToolbar

* added code generation for the function block's code

* added ai code gen to custom tools and response format

* optimize system prompts for js/json generation following our formatting

* added history, fixed apply to replace instead of append

* remove unused imports

* updated styling of chat bar

* refined system prompts for code generation, resolved PR comments
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