Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for anthropic example #35

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ log:

shared_config:
- broker_config: &broker_connection
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
Expand Down
1 change: 0 additions & 1 deletion examples/ack_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ log:

shared_config:
- broker_config: &broker_connection
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
Expand Down
16 changes: 6 additions & 10 deletions examples/anthropic_bedrock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# sends a message to an Anthropic Bedrock model, and
# sends the response back to the Solace broker
# It will ask the model to write a dry joke about the input
# message. It takes the entire payload of the input message
# message.
# Send a message to the Solace broker topics `my/topic1` or `my/topic2`
# with a plain text payload. The model will respond with a dry joke to the
# same topic prefixed with `response/`. (e.g. `response/my/topic1`)
#
# Dependencies:
# pip install langchain_aws langchain_community
Expand All @@ -28,12 +31,12 @@ log:

shared_config:
- broker_config: &broker_connection
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
broker_password: ${SOLACE_BROKER_PASSWORD}
broker_vpn: ${SOLACE_BROKER_VPN}
payload_encoding: utf-8

# List of flows
flows:
Expand All @@ -51,7 +54,6 @@ flows:
qos: 1
- topic: my/topic2
qos: 1
payload_encoding: utf-8
payload_format: text

- component_name: llm
Expand Down Expand Up @@ -81,13 +83,7 @@ flows:
- component_name: solace_sw_broker
component_module: broker_output
component_config:
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
broker_password: ${SOLACE_BROKER_PASSWORD}
broker_vpn: ${SOLACE_BROKER_VPN}
payload_encoding: utf-8
<<: *broker_connection
payload_format: text
input_transforms:
- type: copy
Expand Down
1 change: 0 additions & 1 deletion examples/error_handler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ log:

shared_config:
- broker_config: &broker_connection
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
Expand Down
1 change: 0 additions & 1 deletion examples/request_reply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ log:

shared_config:
- broker_config: &broker_connection
broker_connection_share: ${SOLACE_BROKER_URL}
broker_type: solace
broker_url: ${SOLACE_BROKER_URL}
broker_username: ${SOLACE_BROKER_USERNAME}
Expand Down
Loading