Skip to content

Conversation

jonathan-buttner
Copy link
Contributor

This PR fixes a bug where the anthropic service wasn't exposing the required field max_tokens. This caused the UI to fail to create the service because it wasn't sending the field.

Example response from the get service API now

    {
        "service": "anthropic",
        "name": "Anthropic",
        "task_types": [
            "completion"
        ],
        "configurations": {
            "max_tokens": {
                "description": "The maximum number of tokens to generate before stopping.",
                "label": "Max Tokens",
                "required": true,
                "sensitive": false,
                "updatable": false,
                "type": "int",
                "supported_task_types": [
                    "completion"
                ]
            },

@jonathan-buttner jonathan-buttner added >bug :ml Machine learning Team:ML Meta label for the ML team auto-backport Automatically create backport pull requests when merged v9.2.0 v9.1.1 v8.19.1 v9.0.5 v8.18.5 labels Jul 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @jonathan-buttner, I've created a changelog YAML for you.

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

@jonathan-buttner jonathan-buttner marked this pull request as ready for review July 14, 2025 13:38
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@jonathan-buttner jonathan-buttner merged commit 2478b5c into elastic:main Jul 14, 2025
33 checks passed
@jonathan-buttner jonathan-buttner deleted the ml-max-tokens-anthropic branch July 14, 2025 14:24
jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Jul 14, 2025
…tic#131113)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1
8.19
9.0
8.18

jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Jul 14, 2025
…tic#131113)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
jonathan-buttner added a commit to jonathan-buttner/elasticsearch that referenced this pull request Jul 14, 2025
…tic#131113)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2025
) (#131215)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2025
) (#131218)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2025
) (#131219)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2025
) (#131216)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
…tic#131113)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
…tic#131113)

* Adding max_tokens to get services API

* Update docs/changelog/131113.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.5 v8.19.1 v9.0.5 v9.1.1 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants