Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 732 Bytes

RestrictedModelError.md

File metadata and controls

22 lines (16 loc) · 732 Bytes

LaunchDarklyApi::RestrictedModelError

Properties

Name Type Description Notes
key String The model config key that was not added
message String Why the key was not added. A key that a config variation uses cannot be restricted. Move those variations to a different model first.
code Integer HTTP status code for this key. `400` means a config variation uses the key. `404` means the key does not exist in the project.

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::RestrictedModelError.new(
  key: OpenAI.gpt-image-2,
  message: key is already in use,
  code: 400
)