mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-22 14:43:07 +00:00
merge (#4620)
This commit is contained in:
parent
3d79174eb8
commit
1ac9ca7fac
@ -111,5 +111,4 @@ class ChatGPTInvocationLayer(OpenAIInvocationLayer):
|
||||
|
||||
@classmethod
|
||||
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 valid_model
|
||||
return model_name_or_path in ["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"]
|
||||
|
@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user