Update package.json

This commit is contained in:
Jinglei Ren 2023-05-19 08:46:59 +08:00 committed by GitHub
parent abdd885fd7
commit b31698b36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,46 +37,35 @@
"enum": [ "enum": [
"OpenAI" "OpenAI"
], ],
"description": "Select whose llm to use." "description": "Select which LLM to use."
}, },
"DevChat.maxLogCount": { "DevChat.maxLogCount": {
"type": "number", "type": "number",
"default": 20, "default": 20,
"description": "Limit the number of prompts to output" "description": "Limit the number of prompts in the chat view."
},
"DevChat.logSkip": {
"type": "number",
"default": 0,
"description": "Skip number prompts before showing the prompt history"
}, },
"DevChat.OpenAI.model": { "DevChat.OpenAI.model": {
"type": "string", "type": "string",
"default": "gpt-4", "default": "gpt-4",
"description": "Specify llm model", "description": "Specify the model ID.",
"when": "DevChat.llmModel == 'OpenAI'" "when": "DevChat.llmModel == 'OpenAI'"
}, },
"DevChat.OpenAI.temperature": { "DevChat.OpenAI.temperature": {
"type": "number", "type": "number",
"default": 0.2, "default": 0,
"description": "Specify llm temperature", "description": "The sampling temperature to use, between 0 and 2. Lower values like 0.2 will make it more focused and deterministic.",
"when": "DevChat.llmModel == 'OpenAI'" "when": "DevChat.llmModel == 'OpenAI'"
}, },
"DevChat.OpenAI.stream": { "DevChat.OpenAI.stream": {
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"description": "Specify llm stream", "description": "Whether to stream a response.",
"when": "DevChat.llmModel == 'OpenAI'" "when": "DevChat.llmModel == 'OpenAI'"
}, },
"DevChat.OpenAI.tokensPerPrompt": { "DevChat.OpenAI.tokensPerPrompt": {
"type": "number", "type": "number",
"default": 6000, "default": 6000,
"description": "token for each prompt", "description": "The max number of tokens of a prompt.",
"when": "DevChat.llmModel == 'OpenAI'"
},
"DevChat.OpenAI.useHistoryPrompt": {
"type": "boolean",
"default": true,
"description": "use history prompts as context",
"when": "DevChat.llmModel == 'OpenAI'" "when": "DevChat.llmModel == 'OpenAI'"
}, },
"DevChat.OpenAI.apiKey": { "DevChat.OpenAI.apiKey": {
@ -88,7 +77,7 @@
"DevChat.OpenAI.EndPoint": { "DevChat.OpenAI.EndPoint": {
"type": "string", "type": "string",
"default": "", "default": "",
"description": "OpenAI api server", "description": "The OpenAI API endpoint URL.",
"when": "DevChat.llmModel == 'OpenAI'" "when": "DevChat.llmModel == 'OpenAI'"
}, },
"DevChat.DevChatPath": { "DevChat.DevChatPath": {
@ -102,7 +91,7 @@
] ]
} }
}, },
"description": "Where is DevChat?" "description": "Where is the devchat binary located?"
} }
} }
}, },
@ -127,7 +116,7 @@
"commands": [ "commands": [
{ {
"command": "devchat.applyDiffResult", "command": "devchat.applyDiffResult",
"title": "Apply Diff Result", "title": "Apply Diff",
"icon": "assets/devchat_apply.svg" "icon": "assets/devchat_apply.svg"
}, },
{ {