vscode continue extension(cursor 유사, ollama 연결 시 무료, gpt reverse proxy 연결 예시)




config.yaml 파일에 아래와 같이 복붙 한다.
단, reverse proxy를 구현하지 않은경우, 주석처리된 기존 url을 넣어야 한다.
reverse proxy를 구현한 경우 apiBase 에 본인이 만든 도메인 주소를 넣는다.
(chatgpt, claude, deepseek reverse proxy api 는 지난번 nginx conf를 참고)
name: MyProject
version: 0.0.1
schema: v1
# ───────────────────────────────────────────────────────────────────────────
# 1) 공통 시스템 메시지 정의
sharedSystemMessage: &important_rules
>-
<important_rules>
You are in chat mode.
If the user asks to make changes to files offer that they can use the Apply
Button on the code block, or switch to Agent Mode to make the suggested
updates automatically.
If needed consisely explain to the user they can switch to agent mode
using the Mode Selector dropdown and provide no other details.
Always include the language and file name in the info string when you write
code blocks.
…
You are an expert software developer. You give helpful and concise responses.
</important_rules>
# 2) 모델별 공통 옵션
modelDefaults: &defaults
chatOptions:
baseSystemMessage: *important_rules
# ───────────────────────────────────────────────────────────────────────────
# 3) 모델 정의
models:
- name: chatgpt-4o-latest
provider: openai
model: chatgpt-4o-latest
apiBase: https://gpt.ai-personalserv.com/v1 # ex. https://api.openai.com/v1
apiKey: ${{secrets.OPENAI_API_KEY}} # 환경변수로 관리
<<: *defaults
- name: deepseek-reason
provider: deepseek
model: deepseek-reason
apiBase: https://dpsk.ai-personalserv.com/v1 # ex. https://api.deepseek.com/v1
apiKey: ${{secrets.DEEPSEEK_API_KEY}}
<<: *defaults
- name: claude-opus-4-20250514
provider: openai
model: claude-opus-4-20250514
apiBase: https://cld.ai-personalserv.com/v1 # ex. https://api.anthropic.com/v1
apiKey: ${{secrets.ANTHROPIC_API_KEY}}
<<: *defaults
# ───────────────────────────────────────────────────────────────────────────
# 4) 전역 규칙 및 프롬프트
rules: &default_rules
- Give concise responses
- Always assume Python first, then TypeScript rather than JavaScript
prompts:
- name: test
description: Unit test a function
prompt: >
Please write a complete suite of unit tests for this function. You should
use the Jest testing framework. The tests should cover all possible edge
cases and should be as thorough as possible. You should also include a
description of each test case.
# ───────────────────────────────────────────────────────────────────────────
# 5) 컨텍스트 공급자
context:
- provider: diff
- provider: file
- provider: codebase
- provider: code
- provider: docs
params:
startUrl: https://docs.example.com/introduction
rootUrl: https://docs.example.com
maxDepth: 3
# ───────────────────────────────────────────────────────────────────────────
# 6) 병렬 서버(개발용)
mcpServers:
- name: DevServer
command: npm
args: [ run, dev ]
env:
PORT: "3000"
여기서 secrets.~~ 는...config.yaml 파일이 있는 폴더에 .env 라는 파일을 메모장으로 만들고, 키:값 형태로 저장하면된다.
ex)
OPENAI_API_KEY: sk-~~~~~~~~~
DEEPSEEK_API_KEY: sk-~~~~~~~
ANTHROPIC_API_KEY: sk-~~~~~