Use Code generation when starting new files
Problem to solve
Especially when we have very little content the code-gecko model is not able to provide meaningful suggestions. Based on this we could invoke rather code generation for such instances.
Proposal
Example Prompt
This is a task to write new Javascript code in a file 'app/assets/javascripts/lib/utils/api/spotify.js'. You get first the already existing code file. It is your task to write valid and working Javascript code.
Only return in your response new code.
Create more new code for this file.
or if we already have existing code :
This is a task to write new Javascript code in a file 'app/assets/javascripts/lib/utils/api/spotify.js'. You get first the already existing code file. It is your task to write valid and working Javascript code.
Only return in your response new code.
Already existing code:
import axios from axios;
Create more new code for this file.
Example results :