Skip to content

Commit 5c2b565

Browse files
authored
Patch anthropic-version header. (#328)
1 parent bfd862a commit 5c2b565

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
version = 0.6.1
2+
version = 0.6.2
33
description = Integrating LLMs into structured NLP pipelines
44
author = Explosion
55
author_email = [email protected]

spacy_llm/models/rest/anthropic/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __call__(self, prompts: Iterable[str]) -> Iterable[str]:
5454
headers = {
5555
**self._credentials,
5656
"model": self._name,
57-
"anthropic_version": self._config.get("anthropic_version", "2023-06-01"),
57+
"anthropic-version": self._config.get("anthropic-version", "2023-06-01"),
5858
"Content-Type": "application/json",
5959
}
6060

0 commit comments

Comments
 (0)