oc_chat
Loading...
Searching...
No Matches
config.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.config

Functions

int oc_chat.core.config.get_output_tokens_ceiling ()
bool oc_chat.core.config._color_enabled ()
int oc_chat.core.config.get_max_context_tokens (str model_name)

Variables

 oc_chat.core.config.OC_CHAT_CONTEXT_FILE = os.getenv("OC_CHAT_CONTEXT_FILE", "AGENT_CONTEXT.md")
 oc_chat.core.config.DEFAULT_REASONING_EFFORT = default("reasoning_effort")
list oc_chat.core.config.REASONING_EFFORT_LEVELS = ["low", "medium", "high"]
 oc_chat.core.config.CONTEXT_COMPRESS_THRESHOLD = default("context_compress_threshold")
 oc_chat.core.config.MODEL_MAX_TOKENS = default("model_max_tokens")
 oc_chat.core.config.DEFAULT_CONTEXT_WINDOW_SIZE = default("context_window_size")
 oc_chat.core.config.CONTEXT_KEEP_RECENT = default("context_keep_recent")
 oc_chat.core.config.CONTEXT_KEEP_RECENT_TURNS = default("context_keep_recent_turns")
 oc_chat.core.config.DEFAULT_MAX_REACT_ITERATIONS = default("max_react_iterations")
tuple oc_chat.core.config.TOKEN_PROFILES = ("cheap", "balanced", "deep")
 oc_chat.core.config.OUTPUT_TOKENS_CEILING = shipped("output_tokens")
 oc_chat.core.config.UNDECLARED_OUTPUT_TOKENS = default("undeclared_output_tokens")
bool oc_chat.core.config._COLOR = _color_enabled()
str oc_chat.core.config.STYLE_RESET = "\033[0m" if _COLOR else ""
str oc_chat.core.config.STYLE_DIM = "\033[2m" if _COLOR else ""
str oc_chat.core.config.STYLE_ITALIC = "\033[3m" if _COLOR else ""
str oc_chat.core.config.STYLE_BOLD = "\033[1m" if _COLOR else ""
str oc_chat.core.config.STYLE_CYAN = "\033[36m" if _COLOR else ""
str oc_chat.core.config.STYLE_YELLOW = "\033[33m" if _COLOR else ""
str oc_chat.core.config.STYLE_GREEN = "\033[32m" if _COLOR else ""
str oc_chat.core.config.STYLE_RED = "\033[31m" if _COLOR else ""