Skip to content

Commit

Permalink
Merge pull request #12911 from RasaHQ/merge-3.6.x-main-c70507e
Browse files Browse the repository at this point in the history
Merge 3.6.x into main
  • Loading branch information
ancalita authored Oct 11, 2023
2 parents 264fa14 + 0661204 commit a47ffb9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ https://github.com/RasaHQ/rasa/tree/main/changelog/ . -->

<!-- TOWNCRIER -->

## [3.6.12] - 2023-10-10

Rasa 3.6.12 (2023-10-10)
### Bugfixes
- [#12904](https://github.com/rasahq/rasa/issues/12904): Refresh headers used in requests (e.g. action server requests) made by `EndpointConfig` using its `headers` attribute.
- [#12906](https://github.com/rasahq/rasa/issues/12906): Upgrade `pillow` to `10.0.1` to address security vulnerability CVE-2023-4863 found in `10.0.0` version.


## [3.6.11] - 2023-10-05

Rasa 3.6.11 (2023-10-05)
Expand Down
24 changes: 24 additions & 0 deletions poetry.lock

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

10 changes: 5 additions & 5 deletions rasa/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import pluggy

from rasa.cli import SubParsersAction
from rasa.engine.storage.storage import ModelMetadata
from rasa.shared.core.trackers import DialogueStateTracker
from rasa.shared.nlu.training_data.message import Message

if TYPE_CHECKING:
from rasa.core.brokers.broker import EventBroker
from rasa.core.tracker_store import TrackerStore
from rasa.engine.graph import SchemaNode
from rasa.engine.storage.storage import ModelMetadata
from rasa.shared.core.domain import Domain
from rasa.shared.core.trackers import DialogueStateTracker
from rasa.shared.nlu.training_data.message import Message
from rasa.utils.endpoints import EndpointConfig


Expand Down Expand Up @@ -95,8 +95,8 @@ def init_telemetry(endpoints_file: Optional[Text]) -> None:

@hookspec # type: ignore[misc]
def mock_tracker_for_evaluation(
example: Message, model_metadata: Optional[ModelMetadata]
) -> Optional[DialogueStateTracker]:
example: "Message", model_metadata: Optional["ModelMetadata"]
) -> Optional["DialogueStateTracker"]:
"""Generate a mocked tracker for NLU evaluation."""


Expand Down
3 changes: 3 additions & 0 deletions rasa/utils/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ async def request(
headers.update(kwargs["headers"])
del kwargs["headers"]

if self.headers:
headers.update(self.headers)

url = concat_url(self.url, subpath)

sslcontext = None
Expand Down

0 comments on commit a47ffb9

Please sign in to comment.