Sha256: bc1cffc96329adb30c27fa1c075482ddd359c5cf79ff0c966d6a64ee68f2e80c
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'bedrock_runtime/payload_builders/amazon/base' RSpec.describe RubyAmazonBedrock::PayloadBuilders::Amazon::Base do let(:prompt) { 'example_prompt' } let(:options) { {} } let(:body) do { inputText: prompt, textGenerationConfig: { maxTokenCount: 4096, stopSequences: [], temperature: 0, topP: 1 } }.to_json end describe '#build' do it_should_behave_like 'a payload builder' context 'with custom parameters' do include_context 'amazon titan parameters' it_should_behave_like 'a payload builder' end end end
Version data entries
3 entries across 3 versions & 1 rubygems