Fix circular import in __init__.py (#35)

This commit is contained in:
2026-03-14 09:24:31 +00:00
parent 1b116108a6
commit 0f62267806
25 changed files with 517 additions and 137 deletions
+7 -3
View File
@@ -140,11 +140,15 @@ class OpusGraph:
self.framework = framework
self.genre = genre
self.target_word_count = target_word_count
self.api_key = api_key or os.environ.get("OPENAI_API_KEY")
# Get API key and provider from environment
self.api_key = api_key or os.environ.get("MINIMAX_API_KEY") or os.environ.get("OPENAI_API_KEY")
self.provider = os.environ.get("OPUS_PROVIDER", "minimax")
self.model = os.environ.get("OPUS_MODEL", "MiniMax-M2.5")
self.use_autogen = use_autogen
# Use synchronous LLM
self.llm = LLMClient(api_key=self.api_key, provider="openai", model="gpt-4o")
# Use synchronous LLM with config
self.llm = LLMClient(api_key=self.api_key, provider=self.provider, model=self.model)
# AutoGen critique crew
self.critique_crew = None