mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
move baseten to a REST endpoint call
This commit is contained in:
parent
725611aa58
commit
6e30b234ac
10 changed files with 173 additions and 33 deletions
|
@ -13,4 +13,5 @@ from litellm import embedding, completion
|
|||
litellm.set_verbose = True
|
||||
|
||||
# Test: Check if the alias created via LiteDebugger is mapped correctly
|
||||
print(completion("wizard-lm", messages=[{"role": "user", "content": "Hey, how's it going?"}]))
|
||||
{"top_p": 0.75, "prompt": "What's the meaning of life?", "num_beams": 4, "temperature": 0.1}
|
||||
print(completion("llama-7b", messages=[{"role": "user", "content": "Hey, how's it going?"}], top_p=0.1, temperature=0, num_beams=4, max_tokens=60))
|
Loading…
Add table
Add a link
Reference in a new issue