Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions REST_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PicoCode provides a production-ready local RAG (Retrieval-Augmented Generation)
## Base URL

```
http://127.0.0.1:8000/api
http://127.0.0.1:8080/api
```

## Authentication
Expand Down Expand Up @@ -299,7 +299,7 @@ CODING_MODEL=gpt-4o

# Server configuration
UVICORN_HOST=127.0.0.1
UVICORN_PORT=8000
UVICORN_PORT=8080

# File processing
MAX_FILE_SIZE=200000
Expand All @@ -313,7 +313,7 @@ MAX_FILE_SIZE=200000
import requests

class PicoCodeClient:
def __init__(self, base_url="http://127.0.0.1:8000/api"):
def __init__(self, base_url="http://127.0.0.1:8080/api"):
self.base_url = base_url

def create_project(self, path, name=None):
Expand Down Expand Up @@ -404,8 +404,8 @@ print(suggestion["response"])

PicoCode provides interactive API documentation:

- **Swagger UI**: http://127.0.0.1:8000/docs
- **ReDoc**: http://127.0.0.1:8000/redoc
- **Swagger UI**: http://127.0.0.1:8080/docs
- **ReDoc**: http://127.0.0.1:8080/redoc

These interfaces allow you to:
- Browse all endpoints
Expand Down
4 changes: 0 additions & 4 deletions ide-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ tasks {
}
}

buildPlugin {
archiveBaseName.set("intellij-plugin")
}

patchPluginXml {
sinceBuild.set("231")
untilBuild.set("241.*")
Expand Down
1 change: 1 addition & 0 deletions ide-plugins/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "intellij-plugin"
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PicoCodeConfigurable(private val project: Project) : Configurable {
val state = settings.state

state.serverHost = hostField.text.trim().ifEmpty { "localhost" }
state.serverPort = portField.text.trim().toIntOrNull() ?: 8000
state.serverPort = portField.text.trim().toIntOrNull() ?: 8080

settings.loadState(state)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PicoCodeSettings : PersistentStateComponent<PicoCodeSettings.SettingsState

data class SettingsState(
var serverHost: String = "localhost",
var serverPort: Int = 8000
var serverPort: Int = 8080
)

private var state = SettingsState()
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async def lifespan(app: FastAPI):
uvicorn.run(
"main:app",
host=CFG.get("uvicorn_host", "127.0.0.1"),
port=int(CFG.get("uvicorn_port", 8000)),
port=int(CFG.get("uvicorn_port", 8080)),
reload=True,
access_log=False # Hide access logs
)
2 changes: 1 addition & 1 deletion utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _bool_env(name, default):

# uvicorn host/port (from .env)
"uvicorn_host": os.getenv("UVICORN_HOST", "127.0.0.1"),
"uvicorn_port": int(os.getenv("UVICORN_PORT", "8000")),
"uvicorn_port": int(os.getenv("UVICORN_PORT", "8080")),

# FileWatcher configuration
"file_watcher_enabled": _bool_env("FILE_WATCHER_ENABLED", True),
Expand Down