From 5c2b565e52dfd89ab8b6515dd7c14a2bcefad3cd Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Mon, 16 Oct 2023 11:06:49 +0200 Subject: [PATCH] Patch anthropic-version header. (#328) --- setup.cfg | 2 +- spacy_llm/models/rest/anthropic/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 24d57974..c1d91c9e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -version = 0.6.1 +version = 0.6.2 description = Integrating LLMs into structured NLP pipelines author = Explosion author_email = contact@explosion.ai diff --git a/spacy_llm/models/rest/anthropic/model.py b/spacy_llm/models/rest/anthropic/model.py index 4c2567f2..602ba14b 100644 --- a/spacy_llm/models/rest/anthropic/model.py +++ b/spacy_llm/models/rest/anthropic/model.py @@ -54,7 +54,7 @@ def __call__(self, prompts: Iterable[str]) -> Iterable[str]: headers = { **self._credentials, "model": self._name, - "anthropic_version": self._config.get("anthropic_version", "2023-06-01"), + "anthropic-version": self._config.get("anthropic-version", "2023-06-01"), "Content-Type": "application/json", }