Skip to content

Commit

Permalink
Fix use vision model for openai in try
Browse files Browse the repository at this point in the history
  • Loading branch information
MagMueller committed Nov 6, 2024
1 parent 54c935e commit 2e18985
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/try.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

import argparse
import asyncio

from src import Agent

import argparse

logging.basicConfig(level=logging.INFO)


Expand All @@ -28,7 +27,7 @@ def get_llm(provider: str):
model_name='claude-3-5-sonnet-20240620', timeout=25, stop=None, temperature=0.3
)
elif provider == 'openai':
return ChatOpenAI(model='gpt-4')
return ChatOpenAI(model='gpt-4o', temperature=0.3)
else:
raise ValueError(f'Unsupported provider: {provider}')

Expand Down

0 comments on commit 2e18985

Please sign in to comment.