Skip to content

Conversation

@askadityapandey
Copy link

This Pull Request fixes #5 , I am loving this project. I'd love to contribute more just lemme know if there is any changes needed!

Copy link

@adityadafe adityadafe left a comment

Choose a reason for hiding this comment

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

Mostly nits, but good job

.replace('{{user_code}}', extractedCode);

const apiResponse = await openai.chat.completions.create({
model: 'gpt-4',

Choose a reason for hiding this comment

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

ability to select which model to use should be given to user as we are using their api key right ?


const apiResponse = await openai.chat.completions.create({
model: 'gpt-4',
messages: [

Choose a reason for hiding this comment

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

why was response_format removed ?

@piyushgarg-dev
Copy link
Owner

I guess you need to change system prompt also too and tell AI to give code as a separate key in output.
Please also attach a screen recording for the same.

Copy link

@adityadafe adityadafe left a comment

Choose a reason for hiding this comment

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

LGTM @piyushgarg-dev do you think prompt is okay ?

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.

[FEAT REQ] : When user asks for code, it would be better if there was a button to inject code into leetcodes editor that was generated by ai

3 participants