Skip to content

Commit

Permalink
Merge pull request #765 from ScrapeGraphAI/add-model-integration-for-…
Browse files Browse the repository at this point in the history
…images

feat: add model integration gpt4
  • Loading branch information
VinciGit00 authored Oct 24, 2024
2 parents 4f1ed93 + 51c55eb commit 9e5e76a
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 9e5e76a

Please sign in to comment.