Sha256: fea3eb79de3be46a00f9429ed97b1f63849fa2913551c73571c064fd15509205
Contents?: true
Size: 765 Bytes
Versions: 3
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'bedrock_runtime/payload_builders/anthropic/claude_instant_v1' RSpec.describe RubyAmazonBedrock::PayloadBuilders::Anthropic::ClaudeInstantV1 do let(:prompt) { 'example_prompt' } let(:options) { {} } let(:body) do { prompt: "\n\nHuman: #{prompt}\n\nAssistant:", max_tokens_to_sample: 200, temperature: 0.5, top_k: 250, top_p: 1, stop_sequences: [ '\n\nHuman' ], anthropic_version: 'bedrock-2023-05-31' }.to_json end describe '#build' do it_behaves_like 'a payload builder' context 'with custom parameters' do include_context 'anthropic parameters' it_should_behave_like 'a payload builder' end end end
Version data entries
3 entries across 3 versions & 1 rubygems