Skip to content
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
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ai (0.5.0)
ai (0.5.1)
actionpack (>= 7.1.3)
activesupport (>= 7.1.3)
json_schemer (~> 2.4.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/ai/clients/mastra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run_workflow(workflow_name, input:)
end

# Step 2: Stream the workflow – we only need to consume the stream so that we know when it finishes
stream_url = URI.join(@base_uri, "api/workflows/#{workflow_name}/stream?runId=#{run_id}")
stream_url = URI.join(@base_uri, "api/workflows/#{workflow_name}/streamVNext?runId=#{run_id}")
stream_request_body = { inputData: JSON.parse(input.to_json), runtimeContext: {} }.to_json
stream_response =
http_post(stream_url, body: stream_request_body, stream: true) do |response|
Expand Down
2 changes: 1 addition & 1 deletion lib/ai/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# frozen_string_literal: true

module Ai
VERSION = '0.5.0'
VERSION = '0.5.1'
end
2 changes: 1 addition & 1 deletion spec/fixtures/vcr_cassettes/mastra_workflow_run.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.