mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
feat: Offer OpenRouter OAuth if no model detected
This commit is contained in:
parent
9e3adf0bf8
commit
c3c960383e
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ def select_default_model(args, io, analytics):
|
|||
io.tool_warning(no_model_msg)
|
||||
|
||||
# Try OAuth if no model was detected
|
||||
# offer_openrouter_oauth(io, analytics)
|
||||
offer_openrouter_oauth(io, analytics)
|
||||
|
||||
# Check again after potential OAuth success
|
||||
model = try_to_select_default_model()
|
||||
|
|
|
@ -983,7 +983,7 @@ class TestMain(TestCase):
|
|||
coder = main(
|
||||
["--exit", "--yes"], input=DummyInput(), output=DummyOutput(), return_coder=True
|
||||
)
|
||||
self.assertIn("openrouter/anthropic/claude", coder.main_model.name.lower())
|
||||
self.assertIn("openrouter/", coder.main_model.name.lower())
|
||||
del os.environ["OPENROUTER_API_KEY"]
|
||||
|
||||
# Test OpenAI API key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue