mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-12 21:01:56 +08:00
feat: add model integration gpt4
This commit is contained in:
parent
4f1ed939e6
commit
51c55eb3a2
@ -71,10 +71,10 @@ class GenerateAnswerFromImageNode(BaseNode):
|
|||||||
images = state.get('screenshots', [])
|
images = state.get('screenshots', [])
|
||||||
analyses = []
|
analyses = []
|
||||||
|
|
||||||
supported_models = ("gpt-4o", "gpt-4o-mini", "gpt-4-turbo")
|
supported_models = ("gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-4")
|
||||||
|
|
||||||
if self.node_config["config"]["llm"]["model"].split("/")[-1]not in supported_models:
|
if self.node_config["config"]["llm"]["model"].split("/")[-1]not in supported_models:
|
||||||
raise ValueError(f"""Model '{self.node_config['config']['llm']['model']}'
|
raise ValueError(f"""The model provided
|
||||||
is not supported. Supported models are:
|
is not supported. Supported models are:
|
||||||
{', '.join(supported_models)}.""")
|
{', '.join(supported_models)}.""")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user