Skip to content

✨ Add --base-url option and update default models - #12

Open
jufty-bot wants to merge 6 commits into
juftin:mainfrom
jufty-bot:feat/base-url-and-model-updates
Open

✨ Add --base-url option and update default models#12
jufty-bot wants to merge 6 commits into
juftin:mainfrom
jufty-bot:feat/base-url-and-model-updates

Conversation

@jufty-bot

Copy link
Copy Markdown

Summary

Adds a --base-url / LLM_BASE_URL option for connecting to custom API endpoints (proxies, local servers, alternative providers) and bumps default model versions to the latest available.

Changes

  • llm_term/cli.py — Add --base-url (-b) CLI option with LLM_BASE_URL env var support
  • llm_term/utils.py — Pass base_url through to each provider's constructor:
    • ChatOpenAIopenai_api_base
    • ChatAnthropicanthropic_api_url
    • ChatMistralAIendpoint
    • ChatOllamabase_url
  • Default model updates:
    • OpenAI: gpt-4ogpt-5.6-sol
    • Anthropic: claude-3-5-sonnet-20240620claude-sonnet-5
    • MistralAI: mistral-small-latestmistral-large-latest
    • Ollama: llama3llama3.2

Test Plan

  • CLI help shows new --base-url option
  • Existing test suite passes

juftin added 6 commits July 13, 2026 15:42
- Add --base-url / LLM_BASE_URL env var for custom API endpoints
- Pass base_url through to ChatOpenAI (openai_api_base),
  ChatAnthropic (anthropic_api_url), ChatMistralAI (endpoint),
  and ChatOllama (base_url)
- Bump default models: gpt-5.6-sol (OpenAI), claude-sonnet-5
  (Anthropic), mistral-large-latest (MistralAI), llama3.2 (Ollama)
- Bump langchain~=0.2 → langchain>=1, langchain-core>=1
- Bump langchain-openai~=0.1 → langchain-openai>=1
- Bump langchain-anthropic~=0.1 → langchain-anthropic>=1
- Bump langchain-mistralai~=0.1 → langchain-mistralai>=1
- Replace langchain-community ChatOllama with langchain-ollama>=0.1
- Update imports: langchain.llms/schema → langchain_core
- ChatAnthropic: model_name → model (v1 API)
- Bump requires-python to >=3.10 (langchain v1 minimum)
- Drop Python 3.8/3.9 from classifiers and hatch matrix
- Drop Python 3.8/3.9 from CI test matrix, add 3.13
- Fix UP035: typing.Iterator -> collections.abc.Iterator (py310+)
- Fix RUF022: sorted __all__ in __init__.py
- Ignore PLC0415: intentional lazy imports for optional providers
- base_url flag presence in CLI help
- base_url propagation to all provider constructors
- base_url omitted when not set
- default model values for all providers
- custom model override of default
- temperature=1 for ChatOpenAI GPT-5.x compat
- GPT-5.x compat is now handled by langchain-openai v1's
  validate_temperature which auto-strips temperature from
  reasoning model requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants