update gpt4-v

This commit is contained in:
better629 2024-01-26 15:16:33 +08:00
parent 9cbc34662a
commit 7f8ae1f260
7 changed files with 23 additions and 22 deletions

View file

@ -5,11 +5,10 @@
@Author : alexanderwu
@File : test_action_node.py
"""
from pathlib import Path
from typing import List, Tuple
import pytest
import base64
from pathlib import Path
from pydantic import ValidationError
from metagpt.actions import Action
@ -247,10 +246,7 @@ def test_create_model_class_with_mapping():
@pytest.mark.asyncio
async def test_action_node_with_image():
invoice = ActionNode(
key="invoice",
expected_type=bool,
instruction="if it's a invoice file, return True else False",
example="False"
key="invoice", expected_type=bool, instruction="if it's a invoice file, return True else False", example="False"
)
invoice_path = Path(__file__).parent.joinpath("..", "..", "data", "invoices", "invoice-2.png")