Skip to content

Options and environment variables #3

Description

@lluc

It could be very interesting to read CLI options or environment variables for most of this elements :

# Configuration
OLLAMA_BASE_URL = "http://localhost:11434"  # Base URL for Ollama server. Change this if your Ollama instance runs elsewhere.
OLLAMA_API_URL = OLLAMA_BASE_URL + "/api/chat"
DEFAULT_MODEL = "qwq"  # Change to your preferred model
CURRENT_MODEL = DEFAULT_MODEL  # Track the currently selected model
MAX_SEARCH_RESULTS = 5      # Maximum number of search results to include
MAX_URL_CONTENT_LENGTH = 10000  # Maximum characters to include from URL content
SHOW_THINKING = False  # Default to hiding thinking blocks
MAX_THINKING_LENGTH = 5000  # Maximum length of thinking block to display
DEFAULT_TIMEOUT = 500  # Default timeout for LLM operations in seconds
WORKING_DIRECTORY = None  # Working directory for file operations

Like these :

  • OLLAMA_BASE_URL
  • DEFAULT_MODEL
  • SHOW_THINKING
  • WORKING_DIRECTORY

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions