mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
update baseten handler to handle TGI calls
This commit is contained in:
parent
a86e771c23
commit
4927e5879f
8 changed files with 79 additions and 38 deletions
|
@ -20,7 +20,7 @@ litellm.use_client = True
|
|||
# litellm.set_verbose = True
|
||||
# litellm.secret_manager_client = InfisicalClient(token=os.environ["INFISICAL_TOKEN"])
|
||||
|
||||
user_message = "Hello, whats the weather in San Francisco??"
|
||||
user_message = "write me a function to print hello world in python"
|
||||
messages = [{"content": user_message, "role": "user"}]
|
||||
|
||||
|
||||
|
@ -383,6 +383,14 @@ def test_completion_with_fallbacks():
|
|||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
# def test_baseten():
|
||||
# try:
|
||||
|
||||
# response = completion(model="baseten/RqgAEn0", messages=messages, logger_fn=logger_fn)
|
||||
# # Add any assertions here to check the response
|
||||
# print(response)
|
||||
# except Exception as e:
|
||||
# pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
# def test_baseten_falcon_7bcompletion():
|
||||
# model_name = "qvv0xeq"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue