mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
pass in api key via params
This commit is contained in:
parent
acb6781317
commit
548fcfdff9
9 changed files with 46 additions and 67 deletions
|
@ -19,7 +19,7 @@ messages = [{ "content": user_message,"role": "user"}]
|
|||
|
||||
# test on openai completion call
|
||||
try:
|
||||
response = completion(model="gpt-3.5-turbo", messages=messages)
|
||||
response = completion(model="gpt-3.5-turbo", messages=messages, logger_fn=logger_fn)
|
||||
score +=1
|
||||
except:
|
||||
print(f"error occurred: {traceback.format_exc()}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue