Sha256: 986ee50a662e369ef0cfdfc7309524635084ff50fb097b7885a692792610ceac
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'bedrock_runtime/payload_builders/ai_21_labs/j2_mid_v1' RSpec.describe RubyAmazonBedrock::PayloadBuilders::Ai21Labs::J2MidV1 do let(:prompt) { 'example_prompt' } let(:options) { {} } let(:body) do { prompt: prompt, maxTokens: 200, temperature: 0, topP: 1, stopSequences: [], countPenalty: { scale: 0 }, presencePenalty: { scale: 0 }, frequencyPenalty: { scale: 0 } }.to_json end describe '#build' do it_behaves_like 'a payload builder' context 'with custom parameters' do include_context 'a121 labs parameters' it_should_behave_like 'a payload builder' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-amazon-bedrock-0.2.4 | spec/bedrock_runtime/payload_builders/ai_21_labs/j2_mid_v1_spec.rb |
ruby-amazon-bedrock-0.2.3 | spec/bedrock_runtime/payload_builders/ai_21_labs/j2_mid_v1_spec.rb |