Skip to content

Commit

Permalink
Merge pull request #3027 from redpanda-data/fix-bedrock-chat
Browse files Browse the repository at this point in the history
aws/bedrock/chat: fix switched field names
  • Loading branch information
Jeffail authored Nov 21, 2024
2 parents 4461a69 + bace21c commit c8b3c21
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ Changelog

All notable changes to this project will be documented in this file.

## 4.40.0 - TBD
## 4.40.0 - 2024-11-21

### Added

- New `pg_stream` input supporting change data capture (CDC) from PostgreSQL (@le-vlad)
- New `pg_stream` input supporting change data capture (CDC) from PostgreSQL. (@le-vlad)
- Field `metadata_max_age` added to the `redpanda_migrator_offsets` output. (@mihaitodor)
- Field `kafka_timestamp_ms` added to the `kafka`, `kafka_franz`, `redpanda`, `redpanda_common` and `redpanda_migrator` outputs. (@mihaitodor)
- (Benthos) New Bloblang method `timestamp`. (@mihaitodor)
- (Benthos) New `benchmark` processor. (@ooesili)

### Changed

- `snowflake_streaming` with `schema_evolution.enabled` set to true can now autocreate tables.
- The `snowflake_streaming` output with `schema_evolution.enabled` set to true can now autocreate tables. (@rockwotj)
- Fields `translate_schema_ids` and `schema_registry_output_resource` added to the `redpanda_migrator` output. (@mihaitodor)
- Fields `backfill_dependencies` and `input_resource` added to the `schema_registry` output. (@mihaitodor)
- The `schema_registry` input and output and the `schema_registry_encode` and `schema_registry_decode` processors now use the `github.com/twmb/franz-go/pkg/sr` SchemaRegistry client. (@mihaitodor)
Expand Down
10 changes: 5 additions & 5 deletions docs/modules/components/pages/processors/aws_bedrock_chat.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ aws_bedrock_chat:
prompt: "" # No default (optional)
system_prompt: "" # No default (optional)
max_tokens: 0 # No default (optional)
stop: 0 # No default (optional)
temperature: 0 # No default (optional)
```
--
Expand All @@ -68,8 +68,8 @@ aws_bedrock_chat:
prompt: "" # No default (optional)
system_prompt: "" # No default (optional)
max_tokens: 0 # No default (optional)
stop: 0 # No default (optional)
temperature: [] # No default (optional)
temperature: 0 # No default (optional)
stop: [] # No default (optional)
top_p: 0 # No default (optional)
```
Expand Down Expand Up @@ -222,15 +222,15 @@ The maximum number of tokens to allow in the generated response.
*Type*: `int`
=== `stop`
=== `temperature`
The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model omre likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options.
*Type*: `float`
=== `temperature`
=== `stop`
A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ require (
github.com/rabbitmq/amqp091-go v1.10.0
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
github.com/redis/go-redis/v9 v9.7.0
github.com/redpanda-data/benthos/v4 v4.40.0
github.com/redpanda-data/benthos/v4 v4.41.0
github.com/redpanda-data/common-go/secrets v0.1.1-0.20241114080637-188c28cdde96
github.com/redpanda-data/connect/public/bundle/free/v4 v4.31.0
github.com/rs/xid v1.5.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5X
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E=
github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw=
github.com/redpanda-data/benthos/v4 v4.40.0 h1:/6h8BYALrqzvAKo3RsVdscIdypj08NwfAMgcvX5/+uY=
github.com/redpanda-data/benthos/v4 v4.40.0/go.mod h1:A5izknIGyzs16rCU0qliFVgdCLn2yyvLM4Hltx+s+TI=
github.com/redpanda-data/benthos/v4 v4.41.0 h1:hntAcrgZBmhUOx6kh7ZxnhaBfhFzEEacdv2oaaY7co4=
github.com/redpanda-data/benthos/v4 v4.41.0/go.mod h1:T5Nb0hH1Sa1ChlH4hLW7+nA1+jQ/3CP/cVFI73z6ZIM=
github.com/redpanda-data/common-go/secrets v0.1.1-0.20241114080637-188c28cdde96 h1:Ce4Zk9yLvcWmQHD6HQiBqsb/FFwWWFRA570KCEpFzwE=
github.com/redpanda-data/common-go/secrets v0.1.1-0.20241114080637-188c28cdde96/go.mod h1:WjaDI39reE/GPRPHTsaYmiMjhHj+qsSJLe+kHsPKsXk=
github.com/redpanda-data/connect/public/bundle/free/v4 v4.31.0 h1:Qiz4Q8ZO17n8797hgDdJ2f1XN7wh6J2hIRgeeSw4F24=
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/enterprise/processor_bedrock_chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const (
bedcpFieldUserPrompt = "prompt"
bedcpFieldSystemPrompt = "system_prompt"
bedcpFieldMaxTokens = "max_tokens"
bedcpFieldTemp = "stop"
bedcpFieldStop = "temperature"
bedcpFieldStop = "stop"
bedcpFieldTemp = "temperature"
bedcpFieldTopP = "top_p"
)

Expand Down

0 comments on commit c8b3c21

Please sign in to comment.