11/30/2024

Continue vs code & LM Studio config.json

>>
{
  "models": [
     {
      "apiBase": "http://localhost:1234/v1/",
      "title": "meta-llama-3.1-8b-instruct",
      "model": "meta-llama-3.1-8b-instruct",
      "provider": "lmstudio"
    },
    {
      "title": "baai_-_bge-reranker-v2-gemma",
      "model": "baai_-_bge-reranker-v2-gemma",
      "provider": "lmstudio",
      "temperature": 0.7,
      "stream": false
    }
  ],
  "tabAutocompleteModel": {
    "title": "starcoder2-3b",
    "model": "starcoder2-3b",
    "provider": "lmstudio"
  },
  "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"
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "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"
    },
    {
      "name": "RebuildCodebaseIndex",
      "description": "Continue: Rebuild codebase index"
    }
  ],
  "embeddingsProvider": {
    "provider": "lmstudio",
    "model": "text-embedding-nomic-embed-text-v1.5"
  },
  "reranker": {
    "name": "llm",
    "provider": "lmstudio",
    "params": {
      "modelTitle": "baai_-_bge-reranker-v2-gemma"
    }
  },
  "allowAnonymousTelemetry": false
}


>> baai_-_bge-reranker-v2-gemma 
curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "baai_-_bge-reranker-v2-gemma",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes. Today is Thursday" },
      { "role": "user", "content": "What day is it today?" }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": false
}'

11/22/2024

Continue 로컬 Ollama 설정 config.json



{
  "models": [
    {
      "model": "incept5/llama3.1-claude:latest",
      "title": "incept5/llama3.1-claude:latest",
      "provider": "ollama"
    }
  ],
  "tabAutocompleteModel": {
    "title": "StarCoder2-7b",
    "model": "starcoder2:7b",
    "provider": "ollama"
  },
  "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"
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "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",
    },
    {
      "name": "RebuildCodebaseIndex",
      "description": "Continue: Rebuild codebase index"
    }
  ],
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text",
  },
  "reranker": {
    "name": "llm",
    "params": {
      "modelTitle": "incept5/llama3.1-claude:latest"
    },
  },
  "allowAnonymousTelemetry": false
}

9/15/2024

방향키를 누르면 마우스커서가 이동합니다. 윈11 2024/09/12

>> 키보드 방향키를 사용하면 마우스 커서 위치가 이동하는 현상.

그림판 실행중일때만 이런 현상이 발생됩니다.

7/26/2024

WSL2 외부 접속 설정 네트워크브릿지 방식


WSL 기본 네트워크 설정은 아래와 같습니다.
 
~$ ifconfig



 
 
설정 후 재부팅.
wsl 기동되면 ip 넘버는 외부 아이피처럼 지정됩니다.

윈11 본체의 ip 주소는 변동 없습니다.

즉, 윈11, wsl 리눅스 2개의 ip 넘버 지정되는 결과입니다.
 
$ifconfig
 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.126  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 5e:bb:f6:9e:ee:fa  txqueuelen 1000  (Ethernet)
        RX packets 121  bytes 36581 (36.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 26  bytes 8300 (8.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 37  bytes 213992 (213.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37  bytes 213992 (213.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0