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

Improve model #4253

Merged
merged 17 commits into from
Nov 29, 2023
Merged

Improve model #4253

merged 17 commits into from
Nov 29, 2023

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Nov 19, 2023

  • fix stripping the in-browser model result.
  • use remote llm for code generation

Copy link

netlify bot commented Nov 19, 2023

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit 4411dc2
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/6567753a3c1fdc000840ae35
😎 Deploy Preview https://deploy-preview-4253--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot force-pushed the improve_model branch 4 times, most recently from 86fc95d to a6fb3a9 Compare November 28, 2023 09:07
@yann300 yann300 force-pushed the improve_model branch 2 times, most recently from 615696c to 23636d4 Compare November 28, 2023 09:27
// abort if there is a signal
if (token.isCancellationRequested) {
console.log('aborted')
return
}

console.log(word)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to keep this log?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's done

// the generated text remove a space from the context. that why we need to remove all the spaces
const clean = generatedText.replace(/ /g, '').replace(word.replace(/ /g, ''), '')
// the generated text remove a space from the context...
const clean = generatedText.replace('@custom:dev-run-script', '@custom:dev-run-script ').replace(word, '')
console.log('suggest result', clean)
Copy link
Collaborator

Choose a reason for hiding this comment

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

and this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's done

console.log('suggest result', clean)
const item: monacoTypes.languages.InlineCompletion = {
insertText: clean
};

// abort if there is a signal
if (token.isCancellationRequested) {
console.log('aborted')
Copy link
Collaborator

Choose a reason for hiding this comment

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

this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one yes, this other not.

@yann300 yann300 merged commit 86db390 into master Nov 29, 2023
32 checks passed
@yann300 yann300 deleted the improve_model branch November 29, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants