Repository navigation
Conversation
|
|
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.
Problem
A custom client supplied through
LLMModelConfig.init_clientcan implement every method required byLLMInterfaceand still fail before generation._sample_model()evaluatesvars(sampled_model)['model']for a log message, although the interface does not require that instance field. Bothgenerate()andgenerate_with_context()then raiseKeyError: 'model'. A client exposingmodelas a property also fails.Change
Log the selected entry's existing configuration name instead of inspecting the client's internal dictionary. Sampling weights, selected client, method arguments, output and usage propagation are unchanged. Extend the existing ensemble tests with interface-only and property-backed clients; these use real client implementations and no mocks or provider calls.
Reproduction
Validation
Python 3.12.13, an isolated editable development install, and OpenAI 2.24.0, which satisfies the declared dependency. Unit tests use a placeholder key.
OPENAI_API_KEY=test-for-offline-tests python -m unittest discover tests: 980 tests ran, OK (skipped=2), in 43.432 seconds.git diff --checkpasses.The first full-suite run was blocked by local IPC permissions and reported 2 setup errors. The successful run above allowed the unit tests' local process communication. A multi-file Black invocation hit the same restriction, so the final checks ran one file at a time. No paid model, optillm/model integration suite or browser was used. The test-file diff includes Black's formatting of a few existing lines.
Context
Source-discovered bug, no existing matching issue found. All 47 open PR file lists and the actual ensemble patches in #38, #369, #403, #480 and #495 were checked, as were source history and all-state searches.
AI assistance was used for investigation, implementation and executed local validation. No production incident or independent human review is claimed.