Skip to content

PyCharm

andyceo edited this page May 10, 2024 · 4 revisions

Установка

В Ubuntu версии 18.04 и выше устанавливаем с помощью snap:

sudo snap install pycharm-community --classic

См. https://snapcraft.io/install/pycharm-community/ubuntu

Обновление

snap refresh

Настройка

Отключение файлов .hprof при сбое

Help -> Edit Custom VM Options

Добавить строку -Dperformance.watcher.unresponsive.interval.ms=0

CodeGPT

  • Service: Custom OpenAI Service
  • Configuration:
  • Preset template: OpenAI
    • API Key: может быть пустым для локального сервиса

    • URL: https://api.proxyapi.ru/openai/v1/chat/completions | http://192.168.2.222:11434/v1/chat/completions

    • Headers:

      Authorization	Bearer $CUSTOM_SERVICE_API_KEY
      X-LLM-Application-Tag	codegpt
      Content-Type	application/json
      
    • Body:

      stream	true
      max_tokens	1024 | 2048
      temperature	0.1
      messages	$OPENAI_MESSAGES
      model	gpt-3.5-turbo-0125 | gemma:7b-instruct-q5_1 | gemma:7b | mistral:7b-instruct-v0.2-q8_0
      

Sidebar is under construction

Clone this wiki locally