Skip to content

Feature/327 replace the genai implementation with rig#376

Merged
felix-schultz merged 8 commits intodevfrom
feature/327-replace-the-genai-implementation-with-rig
Nov 13, 2025
Merged

Feature/327 replace the genai implementation with rig#376
felix-schultz merged 8 commits intodevfrom
feature/327-replace-the-genai-implementation-with-rig

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request introduces several improvements and updates to dependency management and JSON schema definitions for desktop and macOS configurations. The most notable changes are grouped below by theme.

Schema Enhancements for Opener APIs and Shell Commands:

  • Improved the schema definitions for URL and path opener APIs in desktop-schema.json and macOS-schema.json by ensuring the url and path properties are correctly described and positioned, clarifying their usage and allowed patterns. [1] [2] [3] [4]
  • Refactored the shell command configuration schema to consistently describe and position the name and cmd properties, improving clarity and maintainability for allowed shell commands. [1] [2] [3] [4] [5] [6]
  • Enhanced argument validation for shell commands by updating the ShellScopeEntryAllowedArgs and ShellScopeEntryAllowedArg definitions, including improved descriptions and regex validation options for command arguments. [1] [2]

Dependency Updates and Additions:

  • Upgraded the schemars crate to version 1.1.0 with the preserve_order feature in Cargo.toml, which may improve JSON schema generation and compatibility.
  • Added new dependencies: rig-core, async-trait, and jsonschema to Cargo.toml to support extended functionality and async traits.
  • Updated async-trait usage in apps/desktop/src-tauri/Cargo.toml to use the workspace version, ensuring consistency across the project.

…f these types in the nodes and core of the project!
- Renamed HuggingfaceModel to OpenRouterModel and updated its implementation to use OpenRouter API.
- Introduced PerplexityModel, TogetherModel, VoyageAIModel, and XAIModel with similar structure and functionality.
- Added new configuration structs for various providers including Cohere, Perplexity, Groq, Together, OpenRouter, Deepseek, Mistral, VoyageAI, Ollama, Hyperbolic, Moonshot, Galadriel, Mira, and XAI.
- Enhanced response handling by implementing conversions between ResponseMessage and RigMessage.
- Added utility methods in ResponseChunk for better handling of streamed responses and tool calls.
- Updated rig_conversion to handle additional content types.
- Updated LLM trait to include additional parameters and history transformation methods.
- Implemented invoke methods for LLM models to handle streaming and non-streaming responses.
- Introduced specific handling for Gemini model to transform data URLs to base64.
- Refactored various model implementations (Deepseek, Galadriel, Hyperbolic, Mira, Mistral, Moonshot, Together, VoyageAI, XAI) to use their respective clients instead of OpenAI.
- Enhanced response handling in response and response_chunk modules to include reasoning and improved chunk creation methods.
- Updated Cargo.toml to use workspace feature for async-trait.
@felix-schultz felix-schultz linked an issue Nov 13, 2025 that may be closed by this pull request
@felix-schultz felix-schultz merged commit 807df88 into dev Nov 13, 2025
3 of 10 checks passed
@felix-schultz felix-schultz deleted the feature/327-replace-the-genai-implementation-with-rig branch November 13, 2025 20:10
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.

Replace the GenAI implementation with Rig

1 participant