Created
December 12, 2024 01:01
-
-
Save dmc5179/5f0096d0cd087c2a37f3461cafe15f11 to your computer and use it in GitHub Desktop.
OpenShift DevSpaces DevFile for Continue Code Assist
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
schemaVersion: 2.1.0 | |
metadata: | |
name: codeassist-images | |
attributes: | |
controller.devfile.io/storage-type: ephemeral | |
controller.devfile.io/scc: container-build | |
.continue/config.json: | | |
{ | |
"allowAnonymousTelemetry": false, | |
"models": [ | |
{ | |
"title": "Llama3.1 8B", | |
"provider": "ollama", | |
"apiBase": "http://ollama:11434/v1", | |
"model": "llama3.1:8b" | |
} | |
], | |
"customCommands": [ | |
{ | |
"name": "test", | |
"prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", | |
"description": "Write unit tests for highlighted code" | |
} | |
], | |
"tabAutocompleteModel": { | |
"title": "Starcoder2 3b", | |
"provider": "ollama", | |
"model": "starcoder2:3b" | |
}, | |
"contextProviders": [ | |
{ | |
"name": "code", | |
"params": {} | |
}, | |
{ | |
"name": "docs", | |
"params": {} | |
}, | |
{ | |
"name": "diff", | |
"params": {} | |
}, | |
{ | |
"name": "terminal", | |
"params": {} | |
}, | |
{ | |
"name": "problems", | |
"params": {} | |
}, | |
{ | |
"name": "folder", | |
"params": {} | |
}, | |
{ | |
"name": "codebase", | |
"params": {} | |
} | |
], | |
"slashCommands": [ | |
{ | |
"name": "edit", | |
"description": "Edit selected code" | |
}, | |
{ | |
"name": "comment", | |
"description": "Write comments for the selected code" | |
}, | |
{ | |
"name": "share", | |
"description": "Export the current chat session to markdown" | |
}, | |
{ | |
"name": "cmd", | |
"description": "Generate a shell command" | |
}, | |
{ | |
"name": "commit", | |
"description": "Generate a git commit message" | |
} | |
] | |
} | |
# .vscode/extensions.json: | | |
# { | |
# "recommendations": [ | |
# "redhat.java" | |
# ] | |
# } | |
components: | |
- name: codeassisttools | |
container: | |
image: registry.redhat.io/devspaces/udi-rhel8:latest | |
#env: | |
# - name: 'DEFAULT_EXTENSION' | |
# value: '/projects/continue/extension.vsix' | |
memoryLimit: 8Gi | |
memoryRequest: 2Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment