feat: OpenAI HTTP client for remote nodes, unified config, CLI http-port#43
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenAiNeuronsClientstreams tokens via/v1/chat/completionsSSE usingopenai_dart; all node management RPCs (load/unload, downloads, MCP, permissions) delegate to an internalGrpcNeuronsClienton the same hostNodeRepositorymigrated fromSharedPreferencesto~/.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)httpPortfield —NodeConfiggainshttpPort(defaultport+1, local node uses8080); JSON keys switched to snake_case to match CLI format with camelCase fallback for migration--http-port—neurons node addaccepts--http-port(default gRPC port+1);node listshows both GRPC and HTTP ports;NeuronsConfig::NodeConfigextended withhttp_portandmcp_modeCloses Neurons-8x5, Neurons-dh3, Neurons-a2m