cmpnd 0.108.2__tar.gz → 0.109.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cmpnd-0.108.2 → cmpnd-0.109.0}/PKG-INFO +3 -2
- {cmpnd-0.108.2 → cmpnd-0.109.0}/README.md +2 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_provider_types.py +83 -3
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_provider_writes.py +35 -2
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/provider_credentials.py +58 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/providers.py +60 -3
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/top.py +5 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/verbs.py +3 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/client.py +69 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/deployment.py +49 -9
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/setup.md +6 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/cli.md +33 -3
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/client.md +3 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/examples/local_ollama.py +6 -4
- {cmpnd-0.108.2 → cmpnd-0.109.0}/pyproject.toml +1 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_providers.py +2 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_credential_selection.py +57 -1
- cmpnd-0.109.0/tests/test_model_list_protocol.py +325 -0
- cmpnd-0.109.0/tests/test_provider_models.py +162 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_provider_types.py +14 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_provider_writes.py +8 -2
- {cmpnd-0.108.2 → cmpnd-0.109.0}/uv.lock +1 -1
- {cmpnd-0.108.2 → cmpnd-0.109.0}/.gitignore +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/AGENTS.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/CLAUDE.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/LINEAGE.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_account.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_http.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/authored.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/configuration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/context.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/credentials.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/datasets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/decorators.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/execution.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/exporter.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/helpers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/imaging.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/labels.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/models.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimization.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/packaging.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/references.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/retry.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/cmpnd/versions.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/custom-proposer.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/reading-traces.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/sdk-instrumentation.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/docs/versions.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/LINEAGE.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/README.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/request_log.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/ingest/pyproject.toml +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/release-gate.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_credential_route.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_fake_clock.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/_traced_run.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/dspy_features.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/system_one_deployment.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/__main__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/drain.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/ingest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/README.md +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/program.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/sweep.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_health.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/_result.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_client.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_client_floor.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_clustering/test_type_conversion.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_configuration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_context.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_datasets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_decorators.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deploy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval_start.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_execute.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_imaging.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_import_weight.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_ingest_second_producer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_integration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_models.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_gepa_settings.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_lm_model_type.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_packaging.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_poll_until.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_process_local.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_identity.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_lm_binding.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_program_naming.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_programs_create.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_project_payload.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_provider_values.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_reanchor_patch.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_retry.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_rlm_tool_spans.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_schemas.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_span_references.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_span_submission.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_stored_login.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_system_one.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_trace_render.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_traces_read.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_truncation.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_usage_dialect.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_user_agent.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_versions.py +0 -0
- {cmpnd-0.108.2 → cmpnd-0.109.0}/tests/test_xxh64.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cmpnd
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.109.0
|
|
4
4
|
Summary: DSPy observability and deployment SDK for cmpnd
|
|
5
5
|
Project-URL: Homepage, https://cmpnd.ai
|
|
6
6
|
Author-email: cmpnd <hello@cmpnd.ai>
|
|
@@ -238,7 +238,8 @@ A provider is a model provider's key that your organization sealed under a
|
|
|
238
238
|
name. A hosted program spends a provider, and the deploy names it. The program's code stays the code you run on your laptop:
|
|
239
239
|
|
|
240
240
|
```python
|
|
241
|
-
|
|
241
|
+
# model_type="chat" keeps the LM on Chat Completions, which LunaRoute serves.
|
|
242
|
+
lm = dspy.LM("openai/deepseek-4.1-flash", api_base="https://gw.lunaroute.com/v1", model_type="chat") # unchanged
|
|
242
243
|
|
|
243
244
|
luna = sdk.get_provider("luna-exec")
|
|
244
245
|
deployed = sdk.deploy_program(program, provider=luna)
|
|
@@ -184,7 +184,8 @@ A provider is a model provider's key that your organization sealed under a
|
|
|
184
184
|
name. A hosted program spends a provider, and the deploy names it. The program's code stays the code you run on your laptop:
|
|
185
185
|
|
|
186
186
|
```python
|
|
187
|
-
|
|
187
|
+
# model_type="chat" keeps the LM on Chat Completions, which LunaRoute serves.
|
|
188
|
+
lm = dspy.LM("openai/deepseek-4.1-flash", api_base="https://gw.lunaroute.com/v1", model_type="chat") # unchanged
|
|
188
189
|
|
|
189
190
|
luna = sdk.get_provider("luna-exec")
|
|
190
191
|
deployed = sdk.deploy_program(program, provider=luna)
|
|
@@ -36,6 +36,19 @@ OPENAI_COMPATIBLE_ALIASES = ("hosted_vllm", "openai_like", "litellm_proxy", "oll
|
|
|
36
36
|
#: The protocols a provider's endpoint may serve, spelled as the platform spells them.
|
|
37
37
|
PROTOCOLS = ("chat_completions", "responses", "converse", "system_one")
|
|
38
38
|
|
|
39
|
+
#: The shapes of a provider's model list the platform reads, and ``none`` for a provider
|
|
40
|
+
#: whose list it does not read. Each is named for the provider whose list has that shape.
|
|
41
|
+
MODEL_LIST_PROTOCOLS = (
|
|
42
|
+
"openai",
|
|
43
|
+
"anthropic",
|
|
44
|
+
"openrouter",
|
|
45
|
+
"together_ai",
|
|
46
|
+
"fireworks_ai",
|
|
47
|
+
"bedrock",
|
|
48
|
+
"typesafe",
|
|
49
|
+
"none",
|
|
50
|
+
)
|
|
51
|
+
|
|
39
52
|
_BEDROCK = "bedrock"
|
|
40
53
|
_AZURE = "azure"
|
|
41
54
|
|
|
@@ -88,10 +101,22 @@ class ProviderTypeError(ValueError):
|
|
|
88
101
|
|
|
89
102
|
|
|
90
103
|
#: How the CLI spells each field in a refusal.
|
|
91
|
-
CLI_SPELLING = {
|
|
104
|
+
CLI_SPELLING = {
|
|
105
|
+
"type": "--type",
|
|
106
|
+
"base_url": "--base-url",
|
|
107
|
+
"region": "--region",
|
|
108
|
+
"protocols": "--protocol",
|
|
109
|
+
"model_list_protocol": "--model-list-protocol",
|
|
110
|
+
}
|
|
92
111
|
|
|
93
112
|
#: How ``cmpnd.Client.add_provider`` spells each field in a refusal.
|
|
94
|
-
CLIENT_SPELLING = {
|
|
113
|
+
CLIENT_SPELLING = {
|
|
114
|
+
"type": "type=",
|
|
115
|
+
"base_url": "base_url=",
|
|
116
|
+
"region": "region=",
|
|
117
|
+
"protocols": "protocols=",
|
|
118
|
+
"model_list_protocol": "model_list_protocol=",
|
|
119
|
+
}
|
|
95
120
|
|
|
96
121
|
|
|
97
122
|
def names() -> list[str]:
|
|
@@ -133,12 +158,15 @@ def seal_body(
|
|
|
133
158
|
base_url: str | None = None,
|
|
134
159
|
region: str | None = None,
|
|
135
160
|
protocols: list[str] | None = None,
|
|
161
|
+
model_list_protocol: str | None = None,
|
|
136
162
|
spelling: dict[str, str],
|
|
137
163
|
) -> dict[str, typing.Any]:
|
|
138
164
|
"""The seal body for a provider named ``name``, without its key.
|
|
139
165
|
|
|
140
166
|
Fields are sent only when there is one: serve fills an absent ``api_base`` from the
|
|
141
|
-
preset, and an empty string is a malformed URL rather than an absent one.
|
|
167
|
+
preset, and an empty string is a malformed URL rather than an absent one. The
|
|
168
|
+
OpenAI-compatible type states the ``openai`` model list protocol unless the caller
|
|
169
|
+
states another, because its endpoint serves OpenAI's model list. Raises
|
|
142
170
|
:class:`ProviderTypeError` when the type and fields disagree.
|
|
143
171
|
"""
|
|
144
172
|
name = (name or "").strip()
|
|
@@ -183,9 +211,61 @@ def seal_body(
|
|
|
183
211
|
f"{', '.join(unknown)} is not a protocol; the protocols are {', '.join(PROTOCOLS)}."
|
|
184
212
|
)
|
|
185
213
|
body["protocols"] = list(dict.fromkeys(protocols))
|
|
214
|
+
stated = (model_list_protocol or "").strip()
|
|
215
|
+
if stated:
|
|
216
|
+
if stated not in MODEL_LIST_PROTOCOLS:
|
|
217
|
+
raise ProviderTypeError(
|
|
218
|
+
f"{stated!r} is not a model list protocol for {spelling['model_list_protocol']}; "
|
|
219
|
+
f"the model list protocols are {', '.join(MODEL_LIST_PROTOCOLS)}."
|
|
220
|
+
)
|
|
221
|
+
body["model_list_protocol"] = stated
|
|
222
|
+
elif chosen == OPENAI_COMPATIBLE:
|
|
223
|
+
body["model_list_protocol"] = "openai"
|
|
186
224
|
return body
|
|
187
225
|
|
|
188
226
|
|
|
227
|
+
#: Where serve's answer says a credential's model list protocol came from, as the
|
|
228
|
+
#: confirmation words it. A protocol the caller stated needs no source.
|
|
229
|
+
_MODEL_LIST_SOURCES = {"preset": "from its preset", "host": "from its host", "kept": "as before"}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def confirmation(lead: str, answer: typing.Any, body: dict[str, typing.Any]) -> str | None:
|
|
233
|
+
"""One line naming a sealed provider's protocols and model list protocol.
|
|
234
|
+
|
|
235
|
+
``lead`` opens the line, such as ``"Added provider openai"``. ``answer`` is serve's
|
|
236
|
+
answer to the seal and ``body`` the seal body without its key. It answers None when
|
|
237
|
+
the answer states no model list protocol, as an older server's does. A server whose
|
|
238
|
+
credential service cannot save a model list protocol answers the source
|
|
239
|
+
``unsupported``, and the line says the platform does not list the provider's models.
|
|
240
|
+
"""
|
|
241
|
+
if not isinstance(answer, dict):
|
|
242
|
+
return None
|
|
243
|
+
model_list = str(answer.get("model_list_protocol") or "")
|
|
244
|
+
source = str(answer.get("model_list_protocol_source") or "")
|
|
245
|
+
protocols = answer.get("protocols") or body.get("protocols") or []
|
|
246
|
+
served = f"protocols {', '.join(protocols)}" if protocols else "the protocols its host implies"
|
|
247
|
+
if source == "unsupported":
|
|
248
|
+
return (
|
|
249
|
+
f"{lead} with {served}. The platform cannot save a model list protocol yet, "
|
|
250
|
+
"so it does not list this provider's models."
|
|
251
|
+
)
|
|
252
|
+
if not model_list:
|
|
253
|
+
return None
|
|
254
|
+
if model_list != "none":
|
|
255
|
+
said = f"model list protocol {model_list}"
|
|
256
|
+
if source in _MODEL_LIST_SOURCES:
|
|
257
|
+
said += f", {_MODEL_LIST_SOURCES[source]}"
|
|
258
|
+
return f"{lead} with {served} and {said}."
|
|
259
|
+
line = f"{lead} with {served} and no model list."
|
|
260
|
+
if source == "none":
|
|
261
|
+
from .cli.commands.top import hint_credentials
|
|
262
|
+
|
|
263
|
+
name = str(answer.get("name") or body.get("name") or body.get("target") or "NAME")
|
|
264
|
+
hint = hint_credentials("model-list-protocol", name, "--set", "openai")
|
|
265
|
+
line += f" If its endpoint serves a model list, set its shape with `{hint}`."
|
|
266
|
+
return line
|
|
267
|
+
|
|
268
|
+
|
|
189
269
|
class AddressNotWhole(ValueError):
|
|
190
270
|
"""The listing showed a provider's address without its path, so a rotation cannot keep it.
|
|
191
271
|
|
|
@@ -15,8 +15,9 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import difflib
|
|
17
17
|
import typing
|
|
18
|
+
import urllib.parse
|
|
18
19
|
|
|
19
|
-
from . import _provider_types, credentials
|
|
20
|
+
from . import _http, _provider_types, credentials
|
|
20
21
|
|
|
21
22
|
_ROUTE = "/api/v1/org/credentials"
|
|
22
23
|
|
|
@@ -45,6 +46,7 @@ def add(
|
|
|
45
46
|
api_key: object,
|
|
46
47
|
base_url: str | None,
|
|
47
48
|
region: str | None,
|
|
49
|
+
model_list_protocol: str | None = None,
|
|
48
50
|
force: object = False,
|
|
49
51
|
) -> credentials.Provider:
|
|
50
52
|
where = "cmpnd.Client.add_provider"
|
|
@@ -56,10 +58,12 @@ def add(
|
|
|
56
58
|
type_name=type_name,
|
|
57
59
|
base_url=base_url,
|
|
58
60
|
region=region,
|
|
61
|
+
model_list_protocol=model_list_protocol,
|
|
59
62
|
spelling=_provider_types.CLIENT_SPELLING,
|
|
60
63
|
)
|
|
61
64
|
except _provider_types.ProviderTypeError as err:
|
|
62
65
|
raise ValueError(f"{where}: {err}") from None
|
|
66
|
+
implied = not model_list_protocol and "model_list_protocol" in body
|
|
63
67
|
body["api_key"] = _key(api_key, where)
|
|
64
68
|
if force is not True and force is not False:
|
|
65
69
|
raise TypeError(f"{where} takes force=True or force=False")
|
|
@@ -70,10 +74,39 @@ def add(
|
|
|
70
74
|
)
|
|
71
75
|
if not force:
|
|
72
76
|
body["create_only"] = True
|
|
73
|
-
transport
|
|
77
|
+
post_seal(transport, body, implied=implied)
|
|
74
78
|
return credentials._get(body["name"], lambda: transport, where)
|
|
75
79
|
|
|
76
80
|
|
|
81
|
+
def post_seal(transport: typing.Any, body: dict[str, typing.Any], *, implied: bool) -> typing.Any:
|
|
82
|
+
"""Post a seal body and answer serve's answer.
|
|
83
|
+
|
|
84
|
+
A server that predates model list protocols refuses the field by name. When the SDK
|
|
85
|
+
implied the field rather than the caller stating it, the seal goes again without it,
|
|
86
|
+
so adding an OpenAI-compatible provider still works against that server.
|
|
87
|
+
"""
|
|
88
|
+
try:
|
|
89
|
+
return transport.post(_ROUTE, json=body)
|
|
90
|
+
except _http.ApiError as err:
|
|
91
|
+
if not (implied and err.status_code == 400 and 'unknown field "model_list_protocol"' in str(err)):
|
|
92
|
+
raise
|
|
93
|
+
return transport.post(_ROUTE, json={k: v for k, v in body.items() if k != "model_list_protocol"})
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def set_model_list_protocol(transport: typing.Any, provider: object, protocol: object) -> dict[str, typing.Any]:
|
|
97
|
+
where = "cmpnd.Client.set_provider_model_list_protocol"
|
|
98
|
+
name = _name(provider, where)
|
|
99
|
+
if protocol not in _provider_types.MODEL_LIST_PROTOCOLS:
|
|
100
|
+
raise ValueError(
|
|
101
|
+
f"{where}: {protocol!r} is not a model list protocol; the model list protocols are "
|
|
102
|
+
f"{', '.join(_provider_types.MODEL_LIST_PROTOCOLS)}."
|
|
103
|
+
)
|
|
104
|
+
answer = transport.put(
|
|
105
|
+
f"{_ROUTE}/{urllib.parse.quote(name, safe='')}/model-list-protocol", json={"model_list_protocol": protocol}
|
|
106
|
+
)
|
|
107
|
+
return answer if isinstance(answer, dict) else {"name": name, "model_list_protocol": protocol}
|
|
108
|
+
|
|
109
|
+
|
|
77
110
|
def rotate_key(transport: typing.Any, provider: object, *, api_key: object) -> credentials.Provider:
|
|
78
111
|
where = "cmpnd.Client.rotate_provider_key"
|
|
79
112
|
name = _name(provider, where)
|
|
@@ -67,9 +67,11 @@ from __future__ import annotations
|
|
|
67
67
|
import getpass
|
|
68
68
|
import re
|
|
69
69
|
import sys
|
|
70
|
+
import urllib.parse
|
|
70
71
|
from argparse import ArgumentParser, _SubParsersAction
|
|
71
72
|
from typing import Any
|
|
72
73
|
|
|
74
|
+
from ... import _provider_types
|
|
73
75
|
from .. import api_client, deprecation, views
|
|
74
76
|
|
|
75
77
|
#: The placements the platform's credentialed egress can compose a credential into.
|
|
@@ -139,6 +141,14 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
139
141
|
choices=PROTOCOLS,
|
|
140
142
|
help="[lm] A protocol the endpoint serves; repeat for several. Without one, the preset or the host decides",
|
|
141
143
|
)
|
|
144
|
+
p.add_argument(
|
|
145
|
+
"--model-list-protocol",
|
|
146
|
+
dest="model_list_protocol",
|
|
147
|
+
choices=_provider_types.MODEL_LIST_PROTOCOLS,
|
|
148
|
+
default=None,
|
|
149
|
+
help="[lm] The shape of the provider's model list, which `cmpnd providers models` reads. Without "
|
|
150
|
+
"one, the preset or the host decides",
|
|
151
|
+
)
|
|
142
152
|
p.add_argument("--placement", choices=PLACEMENTS, help="[mcp] How the server wants its credential")
|
|
143
153
|
p.add_argument("--query-param-name", default="", help="[mcp, query_param] The parameter's name, not its value")
|
|
144
154
|
p.add_argument("--oauth-token-url", default="", help="[mcp, oauth_client_credentials] The token endpoint")
|
|
@@ -172,6 +182,23 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
172
182
|
protocols.add_argument("--set", nargs="+", choices=PROTOCOLS, default=None, help="The whole set")
|
|
173
183
|
protocols.set_defaults(func=handle_protocols)
|
|
174
184
|
|
|
185
|
+
model_list = sub.add_parser(
|
|
186
|
+
"model-list-protocol",
|
|
187
|
+
help="Show a credential's model list protocol, or set it without its key (setting is owner only)",
|
|
188
|
+
description="With no flag, show the shape of the provider's model list the credential states. --set "
|
|
189
|
+
"states it, and `cmpnd providers models` then reads that list. none means the platform does not "
|
|
190
|
+
"read the provider's list.",
|
|
191
|
+
)
|
|
192
|
+
model_list.add_argument("name", help="The credential's name")
|
|
193
|
+
model_list.add_argument(
|
|
194
|
+
"--set",
|
|
195
|
+
dest="set",
|
|
196
|
+
choices=_provider_types.MODEL_LIST_PROTOCOLS,
|
|
197
|
+
default=None,
|
|
198
|
+
help="The model list protocol to state",
|
|
199
|
+
)
|
|
200
|
+
model_list.set_defaults(func=handle_model_list_protocol)
|
|
201
|
+
|
|
175
202
|
default = sub.add_parser(
|
|
176
203
|
"default",
|
|
177
204
|
help="Show the org's default credential, or set or clear it (setting is owner only)",
|
|
@@ -224,6 +251,7 @@ def _reject_flags_from_the_other_kind(args: Any, kind: str) -> None:
|
|
|
224
251
|
("--api-base", getattr(args, "api_base", None)),
|
|
225
252
|
("--preset", getattr(args, "preset", None)),
|
|
226
253
|
("--protocol", getattr(args, "protocols", None)),
|
|
254
|
+
("--model-list-protocol", getattr(args, "model_list_protocol", None)),
|
|
227
255
|
],
|
|
228
256
|
}[kind]
|
|
229
257
|
named = [flag for flag, value in wrong if value]
|
|
@@ -260,6 +288,8 @@ def _lm_body(args: Any) -> dict[str, Any]:
|
|
|
260
288
|
body["api_base"] = args.api_base
|
|
261
289
|
if getattr(args, "protocols", None):
|
|
262
290
|
body["protocols"] = list(dict.fromkeys(args.protocols))
|
|
291
|
+
if getattr(args, "model_list_protocol", None):
|
|
292
|
+
body["model_list_protocol"] = args.model_list_protocol
|
|
263
293
|
return body
|
|
264
294
|
|
|
265
295
|
|
|
@@ -271,6 +301,11 @@ def _older_server(err: api_client.ApiError, what: str) -> api_client.ApiError:
|
|
|
271
301
|
with a bare 404. Upgrading the server is the fix for both, so the error says so.
|
|
272
302
|
"""
|
|
273
303
|
message = str(err)
|
|
304
|
+
if err.status_code == 400 and 'unknown field "model_list_protocol"' in message:
|
|
305
|
+
return api_client.CliError(
|
|
306
|
+
"this cmpnd server predates model list protocols, so it refused `model_list_protocol`. Leave out "
|
|
307
|
+
"--model-list-protocol, or upgrade the server."
|
|
308
|
+
)
|
|
274
309
|
unknown = re.search(r'unknown field "(name|preset|protocols)"', message)
|
|
275
310
|
if err.status_code == 400 and unknown:
|
|
276
311
|
return api_client.CliError(
|
|
@@ -381,6 +416,13 @@ def handle_create(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
381
416
|
sealed["api_base"] = answer.get("api_base") or body.get("api_base", "")
|
|
382
417
|
if answer.get("protocols"):
|
|
383
418
|
sealed["protocols"] = answer["protocols"]
|
|
419
|
+
if answer.get("model_list_protocol"):
|
|
420
|
+
sealed["model_list_protocol"] = answer["model_list_protocol"]
|
|
421
|
+
if answer.get("model_list_protocol_source"):
|
|
422
|
+
sealed["model_list_protocol_source"] = answer["model_list_protocol_source"]
|
|
423
|
+
line = _provider_types.confirmation(f"Created credential {name}", answer, body)
|
|
424
|
+
if line:
|
|
425
|
+
print(line, file=sys.stderr)
|
|
384
426
|
return sealed
|
|
385
427
|
return {
|
|
386
428
|
"sealed": body["server"],
|
|
@@ -462,6 +504,22 @@ def handle_protocols(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
462
504
|
raise _older_server(err, "change a credential's protocols") from None
|
|
463
505
|
|
|
464
506
|
|
|
507
|
+
def handle_model_list_protocol(client: api_client.ApiClient, args: Any) -> Any:
|
|
508
|
+
name = args.name
|
|
509
|
+
chosen = getattr(args, "set", None)
|
|
510
|
+
if not chosen:
|
|
511
|
+
credential = _listed(client, name)
|
|
512
|
+
if "model_list_protocol" not in credential:
|
|
513
|
+
raise api_client.CliError("this cmpnd server does not report model list protocols yet.")
|
|
514
|
+
return {"name": name, "model_list_protocol": credential["model_list_protocol"]}
|
|
515
|
+
try:
|
|
516
|
+
return client.put(
|
|
517
|
+
f"{_ROOT}/{urllib.parse.quote(name, safe='')}/model-list-protocol", json={"model_list_protocol": chosen}
|
|
518
|
+
)
|
|
519
|
+
except api_client.ApiError as err:
|
|
520
|
+
raise _older_server(err, "set a credential's model list protocol") from None
|
|
521
|
+
|
|
522
|
+
|
|
465
523
|
def handle_default(client: api_client.ApiClient, args: Any) -> Any:
|
|
466
524
|
name = getattr(args, "name", None)
|
|
467
525
|
if getattr(args, "clear", False):
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
cmpnd providers add bedrock-east --type bedrock --region us-east-1
|
|
6
6
|
cmpnd providers list --text
|
|
7
7
|
cmpnd providers default openai
|
|
8
|
+
cmpnd providers models openai --text
|
|
8
9
|
cmpnd providers rotate openai
|
|
9
10
|
cmpnd providers remove openai
|
|
10
11
|
|
|
@@ -30,11 +31,13 @@ from __future__ import annotations
|
|
|
30
31
|
|
|
31
32
|
import argparse
|
|
32
33
|
import difflib
|
|
34
|
+
import sys
|
|
33
35
|
import typing
|
|
36
|
+
import urllib.parse
|
|
34
37
|
|
|
35
|
-
from ... import _provider_types
|
|
38
|
+
from ... import _provider_types, _provider_writes
|
|
36
39
|
from .. import api_client, views
|
|
37
|
-
from . import provider_credentials
|
|
40
|
+
from . import provider_credentials, top
|
|
38
41
|
|
|
39
42
|
_ROOT = "/api/v1/org/credentials"
|
|
40
43
|
|
|
@@ -72,6 +75,14 @@ def register(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) ->
|
|
|
72
75
|
f"{_provider_types.OPENAI_COMPATIBLE} and azure, and optional for the others",
|
|
73
76
|
)
|
|
74
77
|
add.add_argument("--region", default=None, help="[bedrock] The AWS region, such as us-east-1")
|
|
78
|
+
add.add_argument(
|
|
79
|
+
"--model-list-protocol",
|
|
80
|
+
dest="model_list_protocol",
|
|
81
|
+
choices=_provider_types.MODEL_LIST_PROTOCOLS,
|
|
82
|
+
default=None,
|
|
83
|
+
help="The shape of the provider's model list, which `cmpnd providers models` reads. Without it, the "
|
|
84
|
+
"type or the base URL's host sets it, and openai-compatible sets openai",
|
|
85
|
+
)
|
|
75
86
|
# Hidden: the type and the base URL set the protocols. A gateway that serves more
|
|
76
87
|
# than one API is the one case that needs it.
|
|
77
88
|
add.add_argument(
|
|
@@ -87,6 +98,16 @@ def register(subparsers: argparse._SubParsersAction[argparse.ArgumentParser]) ->
|
|
|
87
98
|
views.add_text_flag(listing)
|
|
88
99
|
listing.set_defaults(func=handle_list)
|
|
89
100
|
|
|
101
|
+
models = sub.add_parser(
|
|
102
|
+
"models",
|
|
103
|
+
help="List the models a provider's key can call",
|
|
104
|
+
description="List the models a provider's key can call, as the provider reports them. The JSON states "
|
|
105
|
+
"the listing's outcome. --text prints one line per model.",
|
|
106
|
+
)
|
|
107
|
+
models.add_argument("name", help="The provider to list")
|
|
108
|
+
views.add_text_flag(models)
|
|
109
|
+
models.set_defaults(func=handle_models)
|
|
110
|
+
|
|
90
111
|
default = sub.add_parser(
|
|
91
112
|
"default",
|
|
92
113
|
help="Show the default provider, or set or clear it (setting is owner only)",
|
|
@@ -143,6 +164,10 @@ def _summary(verb: str, name: str, answer: typing.Any, body: dict[str, typing.An
|
|
|
143
164
|
}
|
|
144
165
|
if protocols:
|
|
145
166
|
out["protocols"] = protocols
|
|
167
|
+
if answer.get("model_list_protocol"):
|
|
168
|
+
out["model_list_protocol"] = answer["model_list_protocol"]
|
|
169
|
+
if answer.get("model_list_protocol_source"):
|
|
170
|
+
out["model_list_protocol_source"] = answer["model_list_protocol_source"]
|
|
146
171
|
return out
|
|
147
172
|
|
|
148
173
|
|
|
@@ -156,6 +181,7 @@ def handle_add(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
|
156
181
|
base_url=getattr(args, "base_url", None),
|
|
157
182
|
region=getattr(args, "region", None),
|
|
158
183
|
protocols=getattr(args, "protocols", None),
|
|
184
|
+
model_list_protocol=getattr(args, "model_list_protocol", None),
|
|
159
185
|
spelling=_provider_types.CLI_SPELLING,
|
|
160
186
|
)
|
|
161
187
|
except _provider_types.ProviderTypeError as err:
|
|
@@ -172,11 +198,15 @@ def handle_add(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
|
172
198
|
)
|
|
173
199
|
if not getattr(args, "force", False):
|
|
174
200
|
body["create_only"] = True
|
|
201
|
+
implied = not getattr(args, "model_list_protocol", None) and "model_list_protocol" in body
|
|
175
202
|
body["api_key"] = _read_key()
|
|
176
203
|
try:
|
|
177
|
-
answer =
|
|
204
|
+
answer = _provider_writes.post_seal(client, body, implied=implied)
|
|
178
205
|
except api_client.ApiError as err:
|
|
179
206
|
raise provider_credentials._older_server(err, "add a provider by name") from None
|
|
207
|
+
line = _provider_types.confirmation(f"Added provider {body['name']}", answer, body)
|
|
208
|
+
if line:
|
|
209
|
+
print(line, file=sys.stderr)
|
|
180
210
|
return _summary("added", body["name"], answer, body)
|
|
181
211
|
|
|
182
212
|
|
|
@@ -222,6 +252,33 @@ def handle_list(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
|
222
252
|
return None
|
|
223
253
|
|
|
224
254
|
|
|
255
|
+
def handle_models(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
256
|
+
name = args.name
|
|
257
|
+
try:
|
|
258
|
+
listing = client.get(f"{_ROOT}/{urllib.parse.quote(name, safe='')}/models")
|
|
259
|
+
except api_client.ApiError as err:
|
|
260
|
+
if err.status_code == 404:
|
|
261
|
+
listed(client, name)
|
|
262
|
+
raise
|
|
263
|
+
if not getattr(args, "text", False):
|
|
264
|
+
return listing
|
|
265
|
+
outcome = listing.get("outcome")
|
|
266
|
+
if outcome != "complete":
|
|
267
|
+
message = listing.get("message")
|
|
268
|
+
if not message and outcome == "not_listed" and listing.get("model_list_protocol") == "":
|
|
269
|
+
message = (
|
|
270
|
+
f"The provider {name} states no model list protocol. Set one with "
|
|
271
|
+
f"`{top.hint_credentials('model-list-protocol', name, '--set', 'openai')}`."
|
|
272
|
+
)
|
|
273
|
+
print(f"outcome: {outcome}. {message}" if message else f"outcome: {outcome}")
|
|
274
|
+
for model in listing.get("models") or []:
|
|
275
|
+
dated = model.get("dated") or {}
|
|
276
|
+
date = f"{str(dated['at'])[:10]} ({dated.get('means', '')})" if dated.get("at") else "-"
|
|
277
|
+
window = model.get("context_window")
|
|
278
|
+
print(" ".join((str(model.get("id")), str(model.get("kind") or "-"), str(window) if window else "-", date)))
|
|
279
|
+
return None
|
|
280
|
+
|
|
281
|
+
|
|
225
282
|
def handle_default(client: api_client.ApiClient, args: typing.Any) -> typing.Any:
|
|
226
283
|
name = getattr(args, "name", None)
|
|
227
284
|
if getattr(args, "clear", False):
|
|
@@ -218,6 +218,11 @@ def hint_programs(verb: str, *args: str) -> str:
|
|
|
218
218
|
return " ".join(("cmpnd programs", verb, *args))
|
|
219
219
|
|
|
220
220
|
|
|
221
|
+
def hint_credentials(verb: str, *args: str) -> str:
|
|
222
|
+
"""How to run a ``cmpnd credentials`` verb with ARGS. The shell has no credentials verb, so this is the CLI form."""
|
|
223
|
+
return " ".join(("cmpnd credentials", verb, *args))
|
|
224
|
+
|
|
225
|
+
|
|
221
226
|
def _hint_status(deployment_id: str, follow: bool = False) -> str:
|
|
222
227
|
short = _short_id(deployment_id)
|
|
223
228
|
if _SHELL_MODE:
|
|
@@ -215,6 +215,7 @@ RELATION_NOUNS: dict[str, str] = {
|
|
|
215
215
|
"runs": "the durable executions accepted for a deployment or organization",
|
|
216
216
|
"result": "the retained output or error of one deployment run",
|
|
217
217
|
"protocols": "the protocols one credential serves, shown or changed without its key",
|
|
218
|
+
"model-list-protocol": "the shape of one credential's model list, shown or set without its key",
|
|
218
219
|
"default": "the org's default credential, which a deploy or run spends when it names none",
|
|
219
220
|
"tags": "a program's tags and the versions they name",
|
|
220
221
|
"tag-log": "every act that created or moved a program's tags, newest first",
|
|
@@ -255,6 +256,8 @@ COMMAND_SPELLINGS: dict[tuple[str, ...], str] = {
|
|
|
255
256
|
("providers", "add"): "the providers page's Add provider button and every model-provider CLI users "
|
|
256
257
|
"know spell it add; create would read as a provider record apart from its key",
|
|
257
258
|
("providers", "remove"): "the pair of providers add, as the providers page spells it",
|
|
259
|
+
("providers", "models"): "the models a provider's key can call, a read of the provider's own listing that "
|
|
260
|
+
"list would confuse with the list of providers",
|
|
258
261
|
}
|
|
259
262
|
|
|
260
263
|
|
|
@@ -22,6 +22,7 @@ release. ``close()`` is an optional alias for end-of-scope flushing.
|
|
|
22
22
|
from __future__ import annotations
|
|
23
23
|
|
|
24
24
|
import dataclasses
|
|
25
|
+
import urllib.parse
|
|
25
26
|
from collections.abc import Callable, Mapping
|
|
26
27
|
from functools import wraps
|
|
27
28
|
from typing import Any, Literal, ParamSpec, TypeVar
|
|
@@ -1089,6 +1090,40 @@ class Client:
|
|
|
1089
1090
|
credentials._refuse_in_sandbox()
|
|
1090
1091
|
return credentials._list(self._http_client())
|
|
1091
1092
|
|
|
1093
|
+
def list_models(self, provider: str | credentials.Provider) -> dict[str, Any]:
|
|
1094
|
+
"""The models the provider's key can call, as the platform answers them.
|
|
1095
|
+
|
|
1096
|
+
``provider`` is a provider's name or a ``cmpnd.Provider``. The answer holds
|
|
1097
|
+
``credential``, ``outcome``, ``truncated``, ``model_list_protocol`` and ``models``,
|
|
1098
|
+
plus ``message`` when the outcome is ``refused`` or ``not_listed``. It holds
|
|
1099
|
+
``listed_at`` except when the platform cannot list models yet. ``model_list_protocol``
|
|
1100
|
+
is empty when the provider states none, and ``set_provider_model_list_protocol``
|
|
1101
|
+
sets one.
|
|
1102
|
+
The outcome is one of ``complete``, ``truncated``, ``refused``, ``not_listed``,
|
|
1103
|
+
``unavailable`` and ``unreadable``. Each model has an ``id`` and a ``callable``
|
|
1104
|
+
of ``yes``, ``no`` or ``unknown``, and may have more fields the provider reports.
|
|
1105
|
+
|
|
1106
|
+
Raises:
|
|
1107
|
+
TypeError: ``provider`` is neither a non-empty string nor a ``cmpnd.Provider``.
|
|
1108
|
+
cmpnd.ApiError: The organization holds no such provider (404), or the
|
|
1109
|
+
platform could not read the listing (502 or 503).
|
|
1110
|
+
RuntimeError: The call runs inside a hosted program, which cannot reach the
|
|
1111
|
+
platform.
|
|
1112
|
+
"""
|
|
1113
|
+
self._check_active()
|
|
1114
|
+
credentials._refuse_in_sandbox()
|
|
1115
|
+
if isinstance(provider, credentials.Provider):
|
|
1116
|
+
name = provider.name
|
|
1117
|
+
elif isinstance(provider, str) and provider.strip(): # pyright: ignore[reportUnnecessaryIsInstance] -- untyped callers
|
|
1118
|
+
name = provider.strip()
|
|
1119
|
+
else:
|
|
1120
|
+
raise TypeError(
|
|
1121
|
+
f"cmpnd.Client.list_models takes a provider's name, such as 'openai', or a "
|
|
1122
|
+
f"cmpnd.Provider (got {provider!r})"
|
|
1123
|
+
)
|
|
1124
|
+
quoted = urllib.parse.quote(name, safe="")
|
|
1125
|
+
return self._http_client().get(f"/api/v1/org/credentials/{quoted}/models")
|
|
1126
|
+
|
|
1092
1127
|
def add_provider(
|
|
1093
1128
|
self,
|
|
1094
1129
|
name: str,
|
|
@@ -1097,6 +1132,7 @@ class Client:
|
|
|
1097
1132
|
api_key: str,
|
|
1098
1133
|
base_url: str | None = None,
|
|
1099
1134
|
region: str | None = None,
|
|
1135
|
+
model_list_protocol: str | None = None,
|
|
1100
1136
|
force: bool = False,
|
|
1101
1137
|
) -> credentials.Provider:
|
|
1102
1138
|
"""Add a model provider to the organization under ``name``, and return it.
|
|
@@ -1110,6 +1146,12 @@ class Client:
|
|
|
1110
1146
|
its key, type and base URL. ``cmpnd providers add --force`` does the same
|
|
1111
1147
|
from a terminal. Use ``rotate_provider_key`` to change only the key.
|
|
1112
1148
|
|
|
1149
|
+
``model_list_protocol`` names the shape of the provider's model list, which
|
|
1150
|
+
``list_models`` reads: one of ``openai``, ``anthropic``, ``openrouter``,
|
|
1151
|
+
``together_ai``, ``fireworks_ai``, ``bedrock``, ``typesafe`` or ``none``. Without
|
|
1152
|
+
it, the platform takes it from the type, or from the base URL's host, and
|
|
1153
|
+
``openai-compatible`` states ``openai``.
|
|
1154
|
+
|
|
1113
1155
|
``api_key`` is the provider's key. Read it from the environment rather than
|
|
1114
1156
|
writing it in your code, as in ``api_key=os.environ["OPENAI_API_KEY"]``. The SDK
|
|
1115
1157
|
never puts it in a ``repr``, an error or a log.
|
|
@@ -1128,9 +1170,35 @@ class Client:
|
|
|
1128
1170
|
from . import _provider_writes
|
|
1129
1171
|
|
|
1130
1172
|
return _provider_writes.add(
|
|
1131
|
-
self._http_client(),
|
|
1173
|
+
self._http_client(),
|
|
1174
|
+
name,
|
|
1175
|
+
type_name=type,
|
|
1176
|
+
api_key=api_key,
|
|
1177
|
+
base_url=base_url,
|
|
1178
|
+
region=region,
|
|
1179
|
+
model_list_protocol=model_list_protocol,
|
|
1180
|
+
force=force,
|
|
1132
1181
|
)
|
|
1133
1182
|
|
|
1183
|
+
def set_provider_model_list_protocol(self, name: str | credentials.Provider, protocol: str) -> dict[str, Any]:
|
|
1184
|
+
"""Set the shape of the provider's model list, which ``list_models`` reads, and return it.
|
|
1185
|
+
|
|
1186
|
+
``protocol`` is one of ``openai``, ``anthropic``, ``openrouter``, ``together_ai``,
|
|
1187
|
+
``fireworks_ai``, ``bedrock``, ``typesafe`` or ``none``. The provider keeps its key.
|
|
1188
|
+
The answer holds ``name`` and ``model_list_protocol``. Only an organization owner,
|
|
1189
|
+
or a key with the ``credentials:write`` permission, may set it.
|
|
1190
|
+
|
|
1191
|
+
Raises:
|
|
1192
|
+
ValueError: ``protocol`` is not a model list protocol. Nothing is sent.
|
|
1193
|
+
cmpnd.ApiError: The organization holds no such provider (404), or the
|
|
1194
|
+
platform cannot list models yet (503).
|
|
1195
|
+
"""
|
|
1196
|
+
self._check_active()
|
|
1197
|
+
credentials._refuse_in_sandbox()
|
|
1198
|
+
from . import _provider_writes
|
|
1199
|
+
|
|
1200
|
+
return _provider_writes.set_model_list_protocol(self._http_client(), name, protocol)
|
|
1201
|
+
|
|
1134
1202
|
def rotate_provider_key(self, name: str | credentials.Provider, *, api_key: str) -> credentials.Provider:
|
|
1135
1203
|
"""Replace the key of the provider ``name``, and return the provider.
|
|
1136
1204
|
|