mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
* Some improvements to prompts, some better exception handling for various file IO errors, added timeout and max return token configurations for the LLM api. * More monologue prompt improvements * Dynamically set username provided in prompt. * Remove absolute paths from llm prompts, fetch working directory from sandbox when resolving paths in fileio operations, add customizable timeout for bash commands, mention said timeout in llm prompt. * Switched ssh_box to disabling tty echo and removed the logic attempting to delete it from the response afterwards, fixed get_working_directory for ssh_box. * Update prompts in integration tests to match monologue agent changes. * Minor tweaks to make merge easier. * Another minor prompt tweak, better invalid json handling. * Fix lint error * More catch-up to fix lint errors introduced by merge. --------- Co-authored-by: Jim Su <jimsu@protonmail.com> Co-authored-by: Robert Brennan <accounts@rbren.io>
35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
from enum import Enum
|
|
|
|
|
|
class ConfigType(str, Enum):
|
|
LLM_MAX_RETURN_TOKENS = 'LLM_MAX_RETURN_TOKENS'
|
|
LLM_TIMEOUT = 'LLM_TIMEOUT'
|
|
LLM_API_KEY = 'LLM_API_KEY'
|
|
LLM_BASE_URL = 'LLM_BASE_URL'
|
|
WORKSPACE_BASE = 'WORKSPACE_BASE'
|
|
WORKSPACE_MOUNT_PATH = 'WORKSPACE_MOUNT_PATH'
|
|
WORKSPACE_MOUNT_REWRITE = 'WORKSPACE_MOUNT_REWRITE'
|
|
WORKSPACE_MOUNT_PATH_IN_SANDBOX = 'WORKSPACE_MOUNT_PATH_IN_SANDBOX'
|
|
CACHE_DIR = 'CACHE_DIR'
|
|
LLM_MODEL = 'LLM_MODEL'
|
|
SANDBOX_CONTAINER_IMAGE = 'SANDBOX_CONTAINER_IMAGE'
|
|
RUN_AS_DEVIN = 'RUN_AS_DEVIN'
|
|
LLM_EMBEDDING_MODEL = 'LLM_EMBEDDING_MODEL'
|
|
LLM_EMBEDDING_DEPLOYMENT_NAME = 'LLM_EMBEDDING_DEPLOYMENT_NAME'
|
|
LLM_API_VERSION = 'LLM_API_VERSION'
|
|
LLM_NUM_RETRIES = 'LLM_NUM_RETRIES'
|
|
LLM_RETRY_MIN_WAIT = 'LLM_RETRY_MIN_WAIT'
|
|
LLM_RETRY_MAX_WAIT = 'LLM_RETRY_MAX_WAIT'
|
|
AGENT_MEMORY_MAX_THREADS = 'AGENT_MEMORY_MAX_THREADS'
|
|
AGENT_MEMORY_ENABLED = 'AGENT_MEMORY_ENABLED'
|
|
MAX_ITERATIONS = 'MAX_ITERATIONS'
|
|
MAX_CHARS = 'MAX_CHARS'
|
|
AGENT = 'AGENT'
|
|
E2B_API_KEY = 'E2B_API_KEY'
|
|
SANDBOX_TYPE = 'SANDBOX_TYPE'
|
|
SANDBOX_USER_ID = 'SANDBOX_USER_ID'
|
|
SANDBOX_TIMEOUT = 'SANDBOX_TIMEOUT'
|
|
USE_HOST_NETWORK = 'USE_HOST_NETWORK'
|
|
SSH_HOSTNAME = 'SSH_HOSTNAME'
|
|
DISABLE_COLOR = 'DISABLE_COLOR'
|