Skip to content

feat: OpenAI HTTP client for remote nodes, unified config, CLI http-port#43

Merged
dexwritescode merged 1 commit into
mainfrom
feat/openai-http-client-remote-nodes
May 23, 2026
Merged

feat: OpenAI HTTP client for remote nodes, unified config, CLI http-port#43
dexwritescode merged 1 commit into
mainfrom
feat/openai-http-client-remote-nodes

Conversation

@dexwritescode
Copy link
Copy Markdown
Owner

Summary

  • GUI remote inference over OpenAI HTTP — new OpenAiNeuronsClient streams tokens via /v1/chat/completions SSE using openai_dart; all node management RPCs (load/unload, downloads, MCP, permissions) delegate to an internal GrpcNeuronsClient on the same host
  • Unified node configNodeRepository migrated from SharedPreferences to ~/.neurons/config.json (shared with CLI); existing prefs data is migrated automatically on first launch; writes preserve top-level fields (dir, hf_token, active_node_id)
  • httpPort fieldNodeConfig gains httpPort (default port+1, local node uses 8080); JSON keys switched to snake_case to match CLI format with camelCase fallback for migration
  • CLI --http-portneurons node add accepts --http-port (default gRPC port+1); node list shows both GRPC and HTTP ports; NeuronsConfig::NodeConfig extended with http_port and mcp_mode

Closes Neurons-8x5, Neurons-dh3, Neurons-a2m

- GUI remote inference now uses OpenAI HTTP SSE (openai_dart) instead of
  gRPC Generate — OpenAiNeuronsClient streams tokens via /v1/chat/completions
  and delegates all management RPCs to an internal GrpcNeuronsClient
- Node config unified: GUI NodeRepository migrated from SharedPreferences
  to ~/.neurons/config.json (shared with CLI), with one-time migration of
  existing prefs data; preserves top-level fields on write
- NodeConfig extended with httpPort (default port+1, local node uses 8080);
  JSON keys switched to snake_case to match CLI format; camelCase fallback
  for backwards compatibility during migration
- CLI NodeConfig extended with http_port and mcp_mode fields; node add
  accepts --http-port flag (default gRPC port+1); list output shows both ports
- Closes Neurons-8x5, Neurons-dh3, Neurons-a2m
@dexwritescode dexwritescode added the release:minor Bumps minor version on merge label May 23, 2026
@dexwritescode dexwritescode merged commit 6411db3 into main May 23, 2026
4 checks passed
@dexwritescode dexwritescode deleted the feat/openai-http-client-remote-nodes branch May 23, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:minor Bumps minor version on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant