Skip to content

Add FT models supported and limits#218

Merged
connermanuel merged 2 commits intomainfrom
conner/ft-limits-api
Mar 6, 2026
Merged

Add FT models supported and limits#218
connermanuel merged 2 commits intomainfrom
conner/ft-limits-api

Conversation

@connermanuel
Copy link
Contributor

This PR adds two already existing endpoints to openapi, both relating to supported models in the FT API.

@connermanuel connermanuel self-assigned this Mar 3, 2026
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

✱ Stainless preview builds

This PR will update the togetherai SDKs with the following commit message.

feat: Add FT models supported and limits
togetherai-openapi studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅

togetherai-python studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅build ✅lint ✅test ⏭️

pip install https://pkg.stainless.com/s/togetherai-python/846fc6b7055282e61e5db4001fa3ebc7730d5696/together-2.3.0-py3-none-any.whl
⚠️ togetherai-typescript studio · code

Your SDK build had a failure in the build CI job, which is a regression from the base state.
generate ✅build ❗lint ❗test ✅

togetherai-go studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅build ⏭️lint ✅test ✅

go get github.com/stainless-sdks/togetherai-go@c299db32814c19794a9fd81fd7d14be71c65e509
togetherai-terraform studio · code

Your SDK build had at least one "note" diagnostic.
generate ✅lint ✅test ✅


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-03-06 17:34:47 UTC

openapi.yaml Outdated
message:
type: string
description: Message indicating the result of the deletion
HyperParameterLimits:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you guys think of the name HyperParameterLimits, thats the name in the codebase but these arent all strictly hyperparams, I guess we could do FineTuneModelLimits instead, wdyt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with just doing FineTuneModelLimits to avoid confusion

x-codeSamples:
- lang: Shell
label: cURL
source: |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked max about this, we dont cdn cache in case the limits update on our end. Note: this is the SSOT for sequence lengths, etc

openapi.yaml Outdated
schema:
type: string
required: true
description: The model name to get limits for.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for putting description in schema here

openapi.yaml Outdated
description: Message indicating the result of the deletion
HyperParameterLimits:
type: object
description: Hyperparameter limits for a fine-tuning model.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note, all of these fields are going to be marked as optional in the produced code. You have to add a required: [] field and list all properties that are not optional.

Copy link
Contributor

@blainekasten blainekasten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great! I need to request that you add required markers to the types before we merge.

Also sharing this that I'm requesting citadel to add a field for product support that would change the way we query for model support in by product potentially meaning we could deprecate this API endpoing

@connermanuel connermanuel force-pushed the conner/ft-limits-api branch from 37bae39 to 3c758ce Compare March 4, 2026 21:26
@connermanuel
Copy link
Contributor Author

Also sharing this that I'm requesting citadel to add a field for product support that would change the way we query for model support in by product potentially meaning we could deprecate this API endpoing

Thanks for the heads up, this is fine as long as that endpoint surfaces the information contained in shaping's models.yaml, which we can sync about later.

description: Hyperparameter limits for a fine-tuning model.
description: Model limits for fine-tuning.
required:
- model_name
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on what isnt omitempty in the go struct

@connermanuel connermanuel merged commit 28032d8 into main Mar 6, 2026
5 checks passed
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.

3 participants