Skip to content

feat: expand model runner profiles, limits, and packaging extras (#60) - #167

Draft
askmy-stack wants to merge 2 commits into
mainfrom
cursor/provider-adapters-c2a5
Draft

askmy-stack wants to merge 2 commits into
mainfrom
cursor/provider-adapters-c2a5

Conversation

@askmy-stack

Copy link
Copy Markdown
Owner

Summary

Expands the model runner for #60: documented OpenAI / Azure OpenAI / local HTTP profiles (stdlib only), cost/token/max_calls enforcement recorded on run_config, retry backoff controls, and empty [openai] / [providers] packaging extras so the core install stays SDK-free.

Type of change

  • Enhancement / feature
  • Documentation
  • Tests / CI

Test plan

  • ruff check .
  • ruff format --check .
  • mypy src
  • pytest
  • Manual CLI check (if applicable): tool-semantics compare …

Notes for reviewers

  • openai_compatible_from_profile("openai"|"azure-openai"|"local", …) factory + HTTP_PROVIDER_PROFILES
  • Azure uses api-key header and api-version query params
  • Limits: max_calls, max_tokens, max_cost_usd (+ optional per-1M rates); cumulative totals on run_config
  • Unit tests use urlopen / time.sleep monkeypatches only (no live network)
  • Docs: docs/probes.md profile matrix + config examples; README install note
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 16, 2026 16:07
Add OpenAI / Azure OpenAI / local HTTP provider profiles, enforce
max_calls / max_tokens / max_cost_usd with run_config accounting, document
retry backoff, and ship empty [openai]/[providers] marker extras so the
core install stays SDK-free.

Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>
Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>

This branch has not been deployed

No deployments
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