vellum-workflow-server 0.14.89.post1__py3-none-any.whl → 1.0.0.post1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vellum-workflow-server might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-workflow-server
3
- Version: 0.14.89.post1
3
+ Version: 1.0.0.post1
4
4
  Summary:
5
5
  License: AGPL
6
6
  Requires-Python: >=3.9.0,<4
@@ -29,7 +29,7 @@ Requires-Dist: pyjwt (==2.10.0)
29
29
  Requires-Dist: python-dotenv (==1.0.1)
30
30
  Requires-Dist: retrying (==1.3.4)
31
31
  Requires-Dist: sentry-sdk[flask] (==2.20.0)
32
- Requires-Dist: vellum-ai (==0.14.89)
32
+ Requires-Dist: vellum-ai (==1.0.0)
33
33
  Description-Content-Type: text/markdown
34
34
 
35
35
  # Vellum Workflow Runner Server
@@ -6,7 +6,7 @@ workflow_server/api/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
6
6
  workflow_server/api/tests/test_input_display_mapping.py,sha256=drBZqMudFyB5wgiUOcMgRXz7E7ge-Qgxbstw4E4f0zE,2211
7
7
  workflow_server/api/tests/test_workflow_view.py,sha256=2nscM_QsYPHkkTG8_JhNbE2LmGL5FQKXEtaLLjXouw0,14591
8
8
  workflow_server/api/tests/test_workflow_view_stream_workflow_route.py,sha256=7q5AiBzfXX-npCrp-Da2OWk6-M1Ai8QZPDLhLlkxb34,26051
9
- workflow_server/api/workflow_view.py,sha256=-Q7XkaF3uZoxfcb7FeQ56f7VY9MBdsqfTaAF5ZhlpyU,18378
9
+ workflow_server/api/workflow_view.py,sha256=xMRcbYIGdNPHSJwnflTdTuNL5W0j_7f29C1pmMnPsvI,18777
10
10
  workflow_server/code_exec_runner.py,sha256=njBK48zVUwhAjvap_KY1so-D0UjKgR4UihDuKow3JnM,2274
11
11
  workflow_server/config.py,sha256=DyTty8NrAwvtx-esM3KthnpsNh-nKdWNlovWQOgiGpg,1417
12
12
  workflow_server/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -28,7 +28,7 @@ workflow_server/utils/tests/test_sentry_integration.py,sha256=LGmWiaLhFrx-jslrRj
28
28
  workflow_server/utils/tests/test_system_utils.py,sha256=_4GwXvVvU5BrATxUEWwQIPg0bzQXMWBtiBmjP8MTxJM,4314
29
29
  workflow_server/utils/tests/test_utils.py,sha256=qwK5Rmy3RQyjtlUrYAuGuDlBeRzZKsf1yS-y2IpUizQ,6452
30
30
  workflow_server/utils/utils.py,sha256=Wqqn-1l2ugkGgy5paWWdt0AVxAyPMQCYcnRSSOMjXlA,4355
31
- vellum_workflow_server-0.14.89.post1.dist-info/METADATA,sha256=cnlmUZqQf__3fsEVAp5x4kHFajGmxt0YE8Phi9DD3X0,2277
32
- vellum_workflow_server-0.14.89.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- vellum_workflow_server-0.14.89.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
- vellum_workflow_server-0.14.89.post1.dist-info/RECORD,,
31
+ vellum_workflow_server-1.0.0.post1.dist-info/METADATA,sha256=o2abL8l3WNnHaQB0OhRhtBmHEA_SlbAassesrQCcMtM,2273
32
+ vellum_workflow_server-1.0.0.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ vellum_workflow_server-1.0.0.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
+ vellum_workflow_server-1.0.0.post1.dist-info/RECORD,,
@@ -14,7 +14,7 @@ import traceback
14
14
  from uuid import uuid4
15
15
  from typing import Any, Dict, Generator, Iterator, Optional, Union, cast
16
16
 
17
- from flask import Blueprint, Response, current_app as app, request, stream_with_context
17
+ from flask import Blueprint, Response, current_app as app, has_request_context, request, stream_with_context
18
18
  from pydantic import ValidationError
19
19
  from vellum_ee.workflows.display.nodes.get_node_display_class import get_node_display_class
20
20
  from vellum_ee.workflows.display.types import WorkflowDisplayContext
@@ -463,6 +463,11 @@ def get_workflow_request_context(data: dict) -> WorkflowExecutorContext:
463
463
  "request_start_time": time.time_ns(),
464
464
  }
465
465
 
466
+ if has_request_context():
467
+ api_version_header = request.headers.get("x-api-version")
468
+ if api_version_header:
469
+ context_data["api_version"] = api_version_header
470
+
466
471
  return WorkflowExecutorContext.model_validate(context_data)
467
472
 
468
473
 
@@ -473,6 +478,11 @@ def get_node_request_context(data: dict) -> NodeExecutorContext:
473
478
  "request_start_time": time.time_ns(),
474
479
  }
475
480
 
481
+ if has_request_context():
482
+ api_version_header = request.headers.get("x-api-version")
483
+ if api_version_header:
484
+ context_data["api_version"] = api_version_header
485
+
476
486
  return NodeExecutorContext.model_validate(context_data)
477
487
 
478
488