mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(test) gpt4 vision
This commit is contained in:
parent
4d67cee135
commit
96f0a068e6
1 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@ def test_completion_gpt4_turbo():
|
|||
|
||||
def test_completion_gpt4_vision():
|
||||
try:
|
||||
litellm.set_verbose=True
|
||||
response = completion(
|
||||
model="gpt-4-vision-preview",
|
||||
messages=[
|
||||
|
@ -123,7 +124,7 @@ def test_completion_gpt4_vision():
|
|||
"content": [
|
||||
{
|
||||
"type": "text",
|
||||
"text": "What’s in this image?"
|
||||
"text": "Whats in this image?"
|
||||
},
|
||||
{
|
||||
"type": "image_url",
|
||||
|
@ -141,7 +142,7 @@ def test_completion_gpt4_vision():
|
|||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_gpt4_turbo()
|
||||
test_completion_gpt4_vision()
|
||||
|
||||
def test_completion_perplexity_api():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue