carlrobertoh / CodeGPT

JetBrains extension providing access to state-of-the-art LLMs, such as GPT-4, Claude 3, Code Llama, and others, all for free
https://codegpt.ee
Apache License 2.0
975 stars 202 forks source link

How to connect phpstorm to ollama? #493

Closed it-can closed 4 months ago

it-can commented 4 months ago

What happened?

I have ollama installed and llama3 running on my mac, http://127.0.0.1:11434 , can also connect to it in OpenWebUI. How do i connect phpstorm to this?

this doesnt work

Scherm­afbeelding 2024-04-22 om 17 06 03

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.6.3-241

Operating System

macOS

carlrobertoh commented 4 months ago

Hi, please use the Custom OpenAI Service with the Ollama template to connect with CodeGPT

it-can commented 4 months ago

doesnt seem to work with llama3...

Scherm­afbeelding 2024-04-22 om 17 35 31

Scherm­afbeelding 2024-04-22 om 17 34 11

taylorcoffelt commented 4 months ago

image You'll have to change model specified in the body of the requests to llama3