Skip to content

Error 422 - Additional property signal not allowed. #249

@VektorTech

Description

@VektorTech

Sending a request to https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions from the browser with abort signal,

await this.replicate.run(model, {
  input,
  signal: this.abortSignal,
}

results in the following error:

https://api.replicate.com/v1/models/meta/meta-llama-3-70b-instruct/predictions failed with status 422 : {"detail":"- Additional property signal is not allowed\n","status":422,"title":"Input validation failed","invalid_fields":[{"type":"additional_property_not_allowed","field":"","description":"Additional property signal is not allowed"}]}

Request payload show in chrome devtools:

{
    "signal": {},
    "input": {
        "prompt": "hey",
        "prompt_template": "",
        "max_tokens": "",
        "temperature": 1,
        "presence_penalty": 0,
        "frequency_penalty": 0
    },
    "stream": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions