Skip to content

Conversation

@rabbive
Copy link

@rabbive rabbive commented Nov 23, 2025

Add comprehensive local LLM integration with support for:

  • Ollama provider (localhost:11434)
  • LM Studio provider (localhost:1234, OpenAI-compatible)

Features:

  • Streaming chat completions with Combine publishers
  • Automatic model discovery from connected servers
  • Connection status monitoring and auto-reconnect
  • Settings persistence using UserDefaults
  • SwiftUI settings view and model picker
  • Example chat view with streaming UI
  • Unified LocalLLMManager for both providers

Components added:

  • LocalLLMModels.swift: Data models, enums, error types
  • LocalLLMProvider.swift: Base protocol and abstract class
  • OllamaProvider.swift: Full Ollama API implementation
  • LMStudioProvider.swift: OpenAI-compatible implementation
  • LocalLLMManager.swift: Central manager singleton
  • LocalLLMSettingsView.swift: Settings UI components
  • LocalLLMChatView.swift: Example chat implementation
  • README.md: Integration documentation

Also updates OllamaKit submodule to djmango fork.

Add comprehensive local LLM integration with support for:
- Ollama provider (localhost:11434)
- LM Studio provider (localhost:1234, OpenAI-compatible)

Features:
- Streaming chat completions with Combine publishers
- Automatic model discovery from connected servers
- Connection status monitoring and auto-reconnect
- Settings persistence using UserDefaults
- SwiftUI settings view and model picker
- Example chat view with streaming UI
- Unified LocalLLMManager for both providers

Components added:
- LocalLLMModels.swift: Data models, enums, error types
- LocalLLMProvider.swift: Base protocol and abstract class
- OllamaProvider.swift: Full Ollama API implementation
- LMStudioProvider.swift: OpenAI-compatible implementation
- LocalLLMManager.swift: Central manager singleton
- LocalLLMSettingsView.swift: Settings UI components
- LocalLLMChatView.swift: Example chat implementation
- README.md: Integration documentation

Also updates OllamaKit submodule to djmango fork.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants