mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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():
|
def test_completion_gpt4_vision():
|
||||||
try:
|
try:
|
||||||
|
litellm.set_verbose=True
|
||||||
response = completion(
|
response = completion(
|
||||||
model="gpt-4-vision-preview",
|
model="gpt-4-vision-preview",
|
||||||
messages=[
|
messages=[
|
||||||
|
@ -123,7 +124,7 @@ def test_completion_gpt4_vision():
|
||||||
"content": [
|
"content": [
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"text": "What’s in this image?"
|
"text": "Whats in this image?"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "image_url",
|
"type": "image_url",
|
||||||
|
@ -141,7 +142,7 @@ def test_completion_gpt4_vision():
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
# test_completion_gpt4_turbo()
|
test_completion_gpt4_vision()
|
||||||
|
|
||||||
def test_completion_perplexity_api():
|
def test_completion_perplexity_api():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue