Skip to content

MOSH-2469: Add set_lora_adapter method to endpoints resource#379

Draft
nikita-smetanin wants to merge 5 commits into
mainfrom
nikita/v1-set-lora-adapter
Draft

MOSH-2469: Add set_lora_adapter method to endpoints resource#379
nikita-smetanin wants to merge 5 commits into
mainfrom
nikita/v1-set-lora-adapter

Conversation

@nikita-smetanin
Copy link
Copy Markdown
Contributor

@nikita-smetanin nikita-smetanin commented May 21, 2026

Summary

  • Add set_lora_adapter(base_model, adapter_name) to sync and async Endpoints resources
  • SDK accepts two params for ergonomics, combines into single model_name field (base_model:adapter_name) before sending

Related PRs

  • DE backend: togethercomputer/together-dedicated-endpoints#480
  • OpenAPI: togethercomputer/openapi#300
  • Web UI: togethercomputer/together-web#7657
  • Docs: togethercomputer/mintlify-docs#878

Test plan

  • client.endpoints.set_lora_adapter(base_model="x", adapter_name="y") sends {"model_name": "x:y"}
  • Async variant works identically

🤖 Generated with Claude Code

nikita-smetanin and others added 4 commits May 21, 2026 12:01
client.endpoints.set_lora_adapter(
    adapter_model_name="user/adapter-model",
    endpoint_name="user/endpoint-name",
)

Calls POST /v1/endpoints/lora-adapter with clear field names.
Both sync and async versions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SDK still accepts base_model + adapter_name params, combines them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nikita-smetanin nikita-smetanin changed the title Add set_lora_adapter method to endpoints resource MOSH-2469: Add set_lora_adapter method to endpoints resource May 21, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant