Visitors

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

vscode continue extension(cursor 유사, ollama 연결 시 무료, gpt reverse proxy 연결 예시)
vscode 를 실행한 뒤 extension 에서 continue를 검색해 설치한다.
설치 후 continue 로 들어와서 Local Assistant 를 클릭한다.
Local Assistant 를 클릭하면 톱니가 보인다. 이걸 클릭하면 편집 창에 config.yaml 파일이 열린다.

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-~~~~~

Read more

로스앤젤레스 공원에 연방 요원 다수 배치

로스앤젤레스 공원에 연방 요원 다수 배치

로스앤젤레스 공원에 연방 요원 다수 배치 로스앤젤레스 이민자 지역에 연방 요원들이 대거 출동했다 로스앤젤레스의 한 이민자 커뮤니티 공원에 다수의 연방 요원들이 출동하여 주민들과의 긴장이 고조되고 있다. 주요 내용 * 연방 요원들이 로스앤젤레스의 한 공원에 많게는 수십 명 출동했다. * 출동한 요원들은 이민자 커뮤니티와 관련된 조사를 진행 중이다. * 주민들은 요원들의 과도한 군사적 존재에

By King
텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가

텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가

텍사스 홍수 사망자 수 104명 넘어, 책임 요구 증가 텍사스에서 홍수로 인한 피해와 사망자 발생 텍사스의 케르빌에서 발생한 홍수로 인해 현재까지 104명이 사망했으며, 지역사회에서 책임 요구가 커지고 있습니다. 주요 내용 * 케르빌의 과달루페 강에서 대규모 홍수가 발생하고, 강의 수위가 30피트 이상 상승했습니다. * 신속한 구조작업이 진행되고 있으며, 이 과정에서 여러 생존자가 발견되고

By King
미 의회의 AI 규제: 소비자 보호와 주 정부의 자율성 승리

미 의회의 AI 규제: 소비자 보호와 주 정부의 자율성 승리

미국 의회, AI 규제에 대한 중요한 결정 최근 미국 상원은 인공지능(AI) 관련 중요한 결정을 내렸습니다. 트럼프 대통령이 추진했던 AI 규제 모라토리엄 조항을 삭제하며, 소비자와 아동의 안전을 최우선으로 고려했습니다. 주요 변화 * 각 주 정부의 AI 규제 권한 확보 * 10년간 AI 인프라 예산 관련 제한 철폐 * 소비자 보호에 중점 하원 공화당의

By King
호주 정부, 중국의 AI 협력 제안에 신중한 태도

호주 정부, 중국의 AI 협력 제안에 신중한 태도

중국의 AI 협력 제안, 알보니지 총리의 모호한 대응 최근 앤서니 알보니지 호주 총리가 중국의 AI 협력 제안에 대해 조심스러운 입장을 보이고 있습니다. 상하이, 베이징, 청두 방문을 앞두고 있는 알보니지 총리는 중국의 자유무역협정 AI 분야 포함 제안에 대해 명확한 입장을 피하고 있습니다. 신중한 대응의 이유 기자들의 질문에 "우리는 우리의 정책을

By King