in rbi/lib/anthropic/resources/completions.rbi [31:120]
def create(
max_tokens_to_sample:,
model:,
prompt:,
metadata: nil,
stop_sequences: nil,
temperature: nil,
top_k: nil,
top_p: nil,
stream: false,
request_options: {}
); end
sig do
params(
max_tokens_to_sample: Integer,
model: T.any(Anthropic::Models::Model::OrSymbol, String),
prompt: String,
metadata: T.any(Anthropic::Models::Metadata, Anthropic::Internal::AnyHash),
stop_sequences: T::Array[String],
temperature: Float,
top_k: Integer,
top_p: Float,
stream: T.noreturn,
request_options: T.nilable(T.any(Anthropic::RequestOptions, Anthropic::Internal::AnyHash))
)
.returns(Anthropic::Internal::Stream[Anthropic::Models::Completion])
end