- Transformers
- Ollama
- llama.cpp
- ExLlamaV2
- AutoGPTQ
- AutoAWQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ollama from "ollama"; | |
import fs from "fs"; | |
const systemRole = `You are a senior software Engineer who is very picky with code-quality. You have read and memorised Clean Code from Robert Cecil Martin. Your goal is to read other people's code and improve then based on what you learned with that book.`; | |
const [, , fileToBeImproved] = process.argv; | |
if (fileToBeImproved) { | |
const fileContent = fs.readFileSync(fileToBeImproved, { encoding: "utf8" }); |
OlderNewer