From 5cf51ce53c931dd2f8e9ab72da7254f76e194339 Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 8 Nov 2023 16:46:35 +0100 Subject: [PATCH 1/3] Update spacy_llm/models/rest/openai/registry.py Co-authored-by: Sofie Van Landeghem --- spacy_llm/models/rest/openai/registry.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spacy_llm/models/rest/openai/registry.py b/spacy_llm/models/rest/openai/registry.py index 693e21b9..09464634 100644 --- a/spacy_llm/models/rest/openai/registry.py +++ b/spacy_llm/models/rest/openai/registry.py @@ -152,7 +152,6 @@ def openai_gpt_3_5_v2( "gpt-3.5-turbo-0613", "gpt-3.5-turbo-0613-16k", "gpt-3.5-turbo-instruct", - "gpt-3.5-turbo-1106", ] = "gpt-3.5-turbo", # noqa: F722,F821 strict: bool = OpenAI.DEFAULT_STRICT, max_tries: int = OpenAI.DEFAULT_MAX_TRIES, From 7a9a00371fcb34bc0308ef83c94d7f41a1c3cccb Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 8 Nov 2023 16:46:44 +0100 Subject: [PATCH 2/3] Update spacy_llm/tests/test_combinations.py Co-authored-by: Sofie Van Landeghem --- spacy_llm/tests/test_combinations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy_llm/tests/test_combinations.py b/spacy_llm/tests/test_combinations.py index d9f799ea..d36e72ac 100644 --- a/spacy_llm/tests/test_combinations.py +++ b/spacy_llm/tests/test_combinations.py @@ -12,7 +12,7 @@ @pytest.mark.skipif(has_langchain is False, reason="LangChain is not installed") @pytest.mark.parametrize( "model", - ["langchain.OpenAI.v1", "spacy.GPT-3-5.v2", "spacy.GPT-4.v2"], + ["langchain.OpenAI.v1", "spacy.GPT-3-5.v3", "spacy.GPT-4.v3"], ids=["langchain", "rest-openai", "rest-openai"], ) @pytest.mark.parametrize( From 638ec20facd04a466b0eaa0fa07a606f1540347c Mon Sep 17 00:00:00 2001 From: Raphael Mitsch Date: Wed, 8 Nov 2023 16:46:54 +0100 Subject: [PATCH 3/3] Update spacy_llm/models/rest/openai/registry.py Co-authored-by: Sofie Van Landeghem --- spacy_llm/models/rest/openai/registry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy_llm/models/rest/openai/registry.py b/spacy_llm/models/rest/openai/registry.py index 09464634..9013481b 100644 --- a/spacy_llm/models/rest/openai/registry.py +++ b/spacy_llm/models/rest/openai/registry.py @@ -162,8 +162,7 @@ def openai_gpt_3_5_v2( config (Dict[Any, Any]): LLM config passed on to the model's initialization. name (Literal[ - "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-0613-16k", "gpt-3.5-turbo-instruct", - "gpt-3.5-turbo-1106" + "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-0613-16k", "gpt-3.5-turbo-instruct" ]): Model to use. RETURNS (Callable[[Iterable[str]], Iterable[str]]]): OpenAI instance for 'gpt-3.5' model