enum

Crig::Providers::Anthropic::ImageFormat

Inherits Enum < Comparable < Value < Object

Constants

JPEG = 0
PNG = 1
GIF = 2
WEBP = 3

Constructors

from_core(media_type : Crig::Completion::ImageMediaType) : self
Source
from_json_value(value : JSON::Any) : self
Source
from_wire(value : String) : self
Source

Instance methods

gif?

Returns true if this enum value equals GIF

Source
jpeg?

Returns true if this enum value equals JPEG

Source
png?

Returns true if this enum value equals PNG

Source
to_core
Source
to_wire
Source
webp?

Returns true if this enum value equals WEBP

Source