Add config file support and structure for multiple LLMs #5
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.
Migrations
serdefor consistency and clarity.Dependencies
dirsandtomlcrates to facilitate reading from configuration files.assert_cmdandpredicates) to aid in testing and command assertions.README
Models
src/config.rs
Configstruct consolidating configuration settings for model selection.from_sourcesmethod to read configurations from multiple sources (CLI, env vars, TOML, defaults).src/llm/mod.rs
LlmClienttrait for a standardized LLM interface.NoopClientstruct for testing purposes without a functional LLM.src/llm/ollama.rs
ollama.rsfor future functionality related to a specific LLM.src/llm/openai.rs
LlmClientimplementation for OpenAI, enabling requests to the OpenAI Chat Completions API.Main Application
src/main.rs
configandllmmodules for better organization and future multi-LLM support.Configmodule.Tests
tests/cli_basics.rs
cli_basics.rsto validate CLI behavior, ensuring correct responses to--helpand--versionflags.