Skip to content

Commit

Permalink
feat: add model integration gpt4
Browse files Browse the repository at this point in the history
  • Loading branch information
VinciGit00 committed Oct 24, 2024
1 parent 4f1ed93 commit 51c55eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scrapegraphai/nodes/generate_answer_from_image_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ async def execute_async(self, state: dict) -> dict:
images = state.get('screenshots', [])
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:
raise ValueError(f"""Model '{self.node_config['config']['llm']['model']}'
raise ValueError(f"""The model provided
is not supported. Supported models are:
{', '.join(supported_models)}.""")

Expand Down
2 changes: 1 addition & 1 deletion scrapegraphai/prompts/description_node_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
following content from a website. \n
Please provide a description summary of maximum of 20 words. \n
CONTENT OF THE WEBSITE: {content}
"""
"""

0 comments on commit 51c55eb

Please sign in to comment.