-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
104 lines (101 loc) · 2.74 KB
/
Copy pathpackage.json
File metadata and controls
104 lines (101 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "ai-code-completion",
"displayName": "AI Code Completion",
"description": "Real-time AI-powered code completion with ghost text suggestions",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:python",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact"
],
"main": "./out/extension.js",
"contributes": {
"keybindings": [
{
"command": "editor.action.inlineSuggest.trigger",
"key": "cmd+[Equal]"
}
],
"configuration": {
"title": "AI Code Completion",
"properties": {
"aiCodeCompletion.openaiApiKey": {
"type": "string",
"default": "",
"description": "OpenAI API Key for code completion",
"scope": "application"
},
"aiCodeCompletion.model": {
"type": "string",
"default": "gpt-4o-mini",
"description": "OpenAI model to use for completions",
"enum": [
"gpt-4o-mini",
"gpt-4o",
"gpt-3.5-turbo"
]
},
"aiCodeCompletion.maxTokens": {
"type": "number",
"default": 64,
"description": "Maximum tokens for completion"
},
"aiCodeCompletion.temperature": {
"type": "number",
"default": 0.2,
"description": "Temperature for completion creativity (0.0 to 1.0)"
},
"aiCodeCompletion.enableInlineCompletion": {
"type": "boolean",
"default": true,
"description": "Enable inline completion suggestions"
},
"aiCodeCompletion.triggerDelay": {
"type": "number",
"default": 500,
"description": "Delay in milliseconds before triggering suggestions"
}
}
},
"commands": [
{
"command": "ai-code-completion.manualTrigger",
"title": "AI Code Completion: Manual Trigger",
"category": "AI Code Completion"
},
{
"command": "ai-code-completion.debug",
"title": "AI Code Completion: Debug Info",
"category": "AI Code Completion"
},
{
"command": "ai-code-completion.clearSuggestions",
"title": "AI Code Completion: Clear Suggestions",
"category": "AI Code Completion"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/vscode": "^1.74.0",
"typescript": "^4.7.2"
},
"dependencies": {
"openai": "^4.0.0",
"tree-sitter": "^0.22.4",
"tree-sitter-python": "^0.23.6"
}
}