Merged
Conversation
jgieringer
commented
Feb 11, 2026
nz-1
approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “custom endpoint” LLM client implementation so developers can integrate an external chat API, including support for per-conversation conversation_id updates as introduced in PR #104.
Changes:
- Introduces
EndpointLLM(aiohttp-based) and wires it intoLLMFactoryviaendpoint-*model names. - Adds endpoint configuration via environment variables and extends
.env.example. - Adds unit tests and fixtures for the new endpoint client.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
llm_clients/endpoint_llm.py |
New custom endpoint LLM client using aiohttp + conversation_id metadata handling |
llm_clients/config.py |
Adds endpoint-related env vars and get_endpoint_config() |
llm_clients/llm_factory.py |
Allows creating EndpointLLM; updates judge-model error message |
llm_clients/llm_interface.py |
Tweaks conversation_id overwrite logic to ignore empty/same IDs |
llm_clients/__init__.py |
Documents support for endpoint / endpoint-* |
.env.example |
Adds example endpoint env vars |
tests/unit/llm_clients/test_endpoint_llm.py |
New unit tests for EndpointLLM |
tests/unit/llm_clients/conftest.py |
Adds mock_endpoint_config fixture |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
This PR serves as an example for developers bringing a custom endpoint.
This example also makes use of #104 where a conversation_id can be sent to the API and #107 where provider can start the conversation.
If the API rejects the initial conversation_id and returns its own, the client overwrites the initial with the API's conversation_id 🚀