morganpartee / codegpt

GNU General Public License v3.0
23 stars 5 forks source link

Detect filetype automatically if filetype isnt provided #2

Closed josephsdavid closed 1 year ago

josephsdavid commented 1 year ago

Perhaps using python-magic

morganpartee commented 1 year ago

Yeah no duh right? I'm going to use the extension as the head of the markdown block. Shit, even hand in the filename to the prompt too as a comment or something, that might be useful context.