Sha256: f13d9a17883f6e617e52f9387f6c37023feacbe204a658cd656431363134e724
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'bedrock_runtime/payload_builders/cohere/embed_english_v3' RSpec.describe RubyAmazonBedrock::PayloadBuilders::Cohere::EmbedEnglishV3 do let(:prompt) { 'example_prompt' } let(:options) { {} } let(:body) do { texts: [prompt], input_type: 'search_document', truncate: 'NONE' }.to_json end describe '#build' do it_behaves_like 'a payload builder' context 'with custom parameters' do include_context 'cohere embed parameters' it_should_behave_like 'a payload builder' end end end
Version data entries
3 entries across 3 versions & 1 rubygems