mySIte/.continue/assistants/Hugo Assistant.yaml

47 lines
1.5 KiB
YAML

name: Hugo Assistant
version: 1.0.0
schema: v1
models:
- name: Software Assistant
provider: openai
model: software-assistant-32k-context
env:
useLegacyCompletionsEndpoint: false
apiBase: https://gpt.brianfertig.com/api
apiKey: ${{ secrets.OPENWEBUI_API_KEY }}
roles:
- chat
- edit
defaultCompletionOptions:
contextLength: 32768
maxTokens: 8192
- name: Qwen Coder
provider: openai
model: qwen2.5-coder:1.5b
env:
useLegacyCompletionsEndpoint: false
apiBase: https://gpt.brianfertig.com/ollama/v1
apiKey: ${{ secrets.OPENWEBUI_API_KEY }}
roles:
- autocomplete
prompts:
- name: test
description: Write unit tests for highlighted code
prompt: |
Write 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.
- name: Git Commit Message
description: Generate a git commit message for the highlighted code changes
prompt: |
{{ @diff }} Generate a concise and descriptive git commit message for the selected code changes. The message should summarize the changes made, their purpose, and any relevant context. Do not edit any files, just provide the commit message as output.
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase