Add multi-LLM support and update dependencies in README and agent.py#10
Open
Oncorporation wants to merge 1 commit into
Open
Add multi-LLM support and update dependencies in README and agent.py#10Oncorporation wants to merge 1 commit into
Oncorporation wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds configurable multi-provider model selection to the Harbor agent harness and documents how to switch providers via environment variables, alongside adding LiteLLM as a dependency.
Changes:
- Add
litellm>=1.60.0to project dependencies. - Update
agent.pyto derive provider/model from environment variables and build a provider-specific model identifier. - Document multi-LLM configuration examples in
README.md(OpenAI, Anthropic, Ollama, Azure).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| pyproject.toml | Adds LiteLLM dependency to support multi-provider routing. |
| agent.py | Adds env-driven provider/model configuration and constructs a provider-qualified model string for the Agent. |
| README.md | Documents environment variables and example configs for multiple providers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+29
to
+30
| MAX_TURNS = 15 | ||
|
|
Comment on lines
+68
to
+71
| if LLM_PROVIDER == "ollama": | ||
| # Ollama uses custom base URL format | ||
| model_string = f"ollama_chat/{MODEL}" if not LLM_BASE_URL else f"ollama_chat/{MODEL}" | ||
| elif LLM_PROVIDER == "azure": |
Comment on lines
80
to
85
| return Agent( | ||
| name="autoagent", | ||
| instructions=SYSTEM_PROMPT, | ||
| tools=tools, | ||
| model=MODEL, | ||
| model=model_string, | ||
| ) |
| - `LLM_PROVIDER`: Provider name (`openai`, `anthropic`, `ollama`, `azure`, etc.) | ||
| - `MODEL`: Model name (e.g., `gpt-5`, `claude-3-5-sonnet`, `qwen3.5:35b-a3b-q8_0`) | ||
| - `LLM_BASE_URL`: Optional base URL (required for Ollama, Azure, etc.) | ||
| - `API_KEY`: Provider-specific API key (e.g., `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`) |
| LLM_PROVIDER=azure | ||
| MODEL=your-deployment-name | ||
| AZURE_API_KEY=your-api-key | ||
| AZURE_API_BASE=https://your-resource.openai.azure.com |
| "openpyxl", | ||
| "numpy", | ||
| "harbor", | ||
| "litellm>=1.60.0", |
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.
There is no reason to limit ourselves to one token provider. Here we can use local Ollama and other providers