mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix(cli): remove unused mouse support and fix settings autocomplete (#10329)
This commit is contained in:
parent
426350224b
commit
fd805eb835
@ -241,7 +241,7 @@ async def modify_llm_settings_basic(
|
||||
provider_list = [p for p in provider_list if p not in verified_providers]
|
||||
provider_list = verified_providers + provider_list
|
||||
|
||||
provider_completer = FuzzyWordCompleter(provider_list)
|
||||
provider_completer = FuzzyWordCompleter(provider_list, WORD=True)
|
||||
session = PromptSession(key_bindings=kb_cancel())
|
||||
|
||||
current_provider, current_model, current_api_key = (
|
||||
@ -392,7 +392,7 @@ async def modify_llm_settings_basic(
|
||||
)
|
||||
|
||||
if change_model:
|
||||
model_completer = FuzzyWordCompleter(provider_models)
|
||||
model_completer = FuzzyWordCompleter(provider_models, WORD=True)
|
||||
|
||||
# Define a validator function that allows custom models but shows a warning
|
||||
def model_validator(x):
|
||||
@ -528,7 +528,7 @@ async def modify_llm_settings_advanced(
|
||||
)
|
||||
|
||||
agent_list = Agent.list_agents()
|
||||
agent_completer = FuzzyWordCompleter(agent_list)
|
||||
agent_completer = FuzzyWordCompleter(agent_list, WORD=True)
|
||||
agent = await get_validated_input(
|
||||
session,
|
||||
'(Step 4/6) Agent (TAB for options, CTRL-c to cancel): ',
|
||||
|
||||
@ -906,7 +906,6 @@ def cli_confirm(
|
||||
layout=layout,
|
||||
key_bindings=kb,
|
||||
style=style,
|
||||
mouse_support=True,
|
||||
full_screen=False,
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user