Repository navigation
Conversation
Author
|
Hi @blackhammer116, could you please review this fix when you have time? It addresses OMEGA-612 by removing Omega's unnecessary import-time dependency on PeTTa's OpenAI initialization. The focused regressions and missing/configured credential scenarios are included in the PR description. Thank you. |
Author
|
@blackhammer116 The CI startup failure has been addressed in a35817b. Removing lib_llm exposed an incidental dependency on its Python-path setup. Omega now initializes its repository import path explicitly. I reproduced the CI container startup locally: the security policy was applied and the agent reached iteration 1. Focused regressions now report 13 passed. |
Collaborator
|
@MilaBooot the CI is still failing |
This branch has not been deployed
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.
Tracking
Fixes Omega startup/import failure when OpenAI credentials are unset, even when OpenAI functionality is not being used.
Omega imported PeTTa's
lib_llmfromlib_omega.metta, although it did not use its OpenAI or OpenRouter operations. Importing that library initialized the OpenAI client and raised a missing-credentials error for configurations such asprovider=Testwith local embeddings.This change:
lib_llmimport fromlib_omega.metta.py-strhelper into Omega's own utilities.py-str.lib_llmimport's incidental path setup.Expected behavior is preserved:
OPENAI_API_KEY: Omega reports that OpenAI is not configured.src/rag.pyimplementation.lib_llmimport's incidental path setup.Related to OMEGA-612 and PeTTa issue #325.
Real dependency/startup validation
The regression was also tested outside pytest against the actual affected dependency:
main:ee5cacb6a6ecdd554a1c773aaf47e9a0f8a5af0f4dc8d81OPENAI_API_KEY: unsetOPENAI_ADMIN_KEY: unsetOmega's real MeTTa import path completed successfully: