Merge pull request #4806 from ethereum/solgpt_chat

Solgpt chat
pull/4807/head
Aniket 6 months ago committed by GitHub
commit e7b410d18c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      apps/remix-ide/src/app/plugins/solcoderAI.tsx

@ -22,14 +22,14 @@ const profile = {
type ChatEntry = [string, string];
enum BackendOPModel{
DeeSeek,
DeepSeek,
CodeLLama,
Mistral
}
const PromptBuilder = (inst, answr, modelop) => {
if (modelop === BackendOPModel.CodeLLama) return "\n### INSTRUCTION:\n" + inst + "\n### RESPONSE:\n" + answr
if (modelop === BackendOPModel.DeeSeek) return ""
if (modelop === BackendOPModel.CodeLLama) return ""
if (modelop === BackendOPModel.DeepSeek) return "\n### INSTRUCTION:\n" + inst + "\n### RESPONSE:\n" + answr
if (modelop === BackendOPModel.Mistral) return ""
}
@ -38,7 +38,7 @@ export class SolCoder extends Plugin {
completion_url: string
solgpt_chat_history:ChatEntry[]
max_history = 7
model_op = BackendOPModel.CodeLLama
model_op = BackendOPModel.DeepSeek
constructor() {
super(profile)

Loading…
Cancel
Save