Skip to content

Commit e7b410d

Browse files
authored
Merge pull request ethereum#4806 from ethereum/solgpt_chat
Solgpt chat
2 parents 0239e06 + a01c123 commit e7b410d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/remix-ide/src/app/plugins/solcoderAI.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ const profile = {
2222
type ChatEntry = [string, string];
2323

2424
enum BackendOPModel{
25-
DeeSeek,
25+
DeepSeek,
2626
CodeLLama,
2727
Mistral
2828
}
2929

3030
const PromptBuilder = (inst, answr, modelop) => {
31-
if (modelop === BackendOPModel.CodeLLama) return "\n### INSTRUCTION:\n" + inst + "\n### RESPONSE:\n" + answr
32-
if (modelop === BackendOPModel.DeeSeek) return ""
31+
if (modelop === BackendOPModel.CodeLLama) return ""
32+
if (modelop === BackendOPModel.DeepSeek) return "\n### INSTRUCTION:\n" + inst + "\n### RESPONSE:\n" + answr
3333
if (modelop === BackendOPModel.Mistral) return ""
3434
}
3535

@@ -38,7 +38,7 @@ export class SolCoder extends Plugin {
3838
completion_url: string
3939
solgpt_chat_history:ChatEntry[]
4040
max_history = 7
41-
model_op = BackendOPModel.CodeLLama
41+
model_op = BackendOPModel.DeepSeek
4242

4343
constructor() {
4444
super(profile)

0 commit comments

Comments
 (0)