mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
(test) setting organization on litellm.completion
This commit is contained in:
parent
c53ad878b3
commit
8fdff3beec
1 changed files with 16 additions and 0 deletions
|
|
@ -569,6 +569,22 @@ def test_completion_openai():
|
|||
# test_completion_openai()
|
||||
|
||||
|
||||
def test_completion_openai_organization():
|
||||
try:
|
||||
litellm.set_verbose = True
|
||||
try:
|
||||
response = completion(
|
||||
model="gpt-3.5-turbo", messages=messages, organization="org-ikDc4ex8NB"
|
||||
)
|
||||
pytest.fail("Request should have failed - This organization does not exist")
|
||||
except Exception as e:
|
||||
assert "No such organization: org-ikDc4ex8NB" in str(e)
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
|
||||
def test_completion_text_openai():
|
||||
try:
|
||||
# litellm.set_verbose = True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue