Sha256: 3ea1017b0a2c243f732b0a8b2b109089e274d051fb7b8c86c86636a6ed2a4e19
Contents?: true
Size: 767 Bytes
Versions: 3
Compression:
Stored size: 767 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'bedrock_runtime/payload_builders/cohere/command_light_text_v14' RSpec.describe RubyAmazonBedrock::PayloadBuilders::Cohere::CommandLightTextV14 do let(:prompt) { 'example_input' } let(:options) { {} } let(:body) do { prompt: "#{prompt}:", temperature: 0.9, p: 0.75, k: 0, max_tokens: 20, num_generations: 1, return_likelihoods: 'GENERATION', stop_sequences: [], stream: false, truncate: 'NONE' }.to_json end describe '#build' do it_behaves_like 'a payload builder' context 'with custom parameters' do include_context 'cohere command parameters' it_should_behave_like 'a payload builder' end end end
Version data entries
3 entries across 3 versions & 1 rubygems