feat: introduce base_url_fixed for local model
#34
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
This PR adds support for configuring
base_urlseparately forllm_engineandllm_engine_fixed, enabling users to use local LLM servers (e.g., vLLM) for all components.Problem
Previously, the
base_urlparameter was only passed tollm_engine, whilellm_engine_fixedalways used the default API endpoint. This causedAPIConnectionErrorwhen:model_engine = ["trainable", "trainable", "trainable", "trainable"]configurationThe error occurred because:
Planner.llm_engine_fixedandVerifier.llm_engine_fixedwere created withoutbase_urlBase_Generator_Toolalso lackedbase_urlparameter supportSolution
Added new parameters to
construct_solver():base_url_fixed: Forllm_engine_fixed(falls back tobase_urlif not set)Modified Files
solver.py: Addedbase_url_fixedandbase_url_toolparametersplanner.py: Addedbase_url_fixedparameter forllm_engine_fixedverifier.py: Addedbase_url_fixedparameter forllm_engine_fixedinitializer.py: Passbase_urlto tool instancestools/base_generator/tool.py: Addedbase_urlparameter supportUsage