mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-21 22:23:23 +00:00
merge (#4620)
This commit is contained in:
parent
3d79174eb8
commit
1ac9ca7fac
@ -111,5 +111,4 @@ class ChatGPTInvocationLayer(OpenAIInvocationLayer):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def supports(cls, model_name_or_path: str, **kwargs) -> bool:
|
def supports(cls, model_name_or_path: str, **kwargs) -> bool:
|
||||||
valid_model = any(m for m in ["gpt-3.5-turbo"] if m in model_name_or_path)
|
return model_name_or_path in ["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"]
|
||||||
return valid_model
|
|
||||||
|
@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def instruction_following_models() -> List[str]:
|
def instruction_following_models() -> List[str]:
|
||||||
return ["flan", "mt0", "bloomz", "davinci", "opt-iml"]
|
return ["flan", "mt0", "bloomz", "davinci", "opt-iml", "gpt-3.5-turbo", "gpt-4"]
|
||||||
|
|
||||||
|
|
||||||
class PromptModel(BaseComponent):
|
class PromptModel(BaseComponent):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user