-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make together embeddings.create() into OpenAI compatible format and a…
…llow providing a safety_model to Complete.create() (#63) * embeddings take str and list of strings this is to make the method compatible with openai * embeddings take str and list of strings this is to make the method compatible with openai * allows returning object embedding this make the embedding API openai compatible so you can call embed.data[0].embedding * allows returning object embedding this make the embedding API openai compatible so you can call embed.data[0].embedding * Added safety_model to Complete.create this is for the meta safety llama as a placeholder so we can use python in the demo * removed the embeddings api from readme not to be announced yet per heejin * black ruff and mypy * Added TogetherAI() class this allows for both the output = together.Complete.create( form of usage and also the client = TogetherAI() embed = client.embeddings.create( form of usage to keep the python library self consistent but also be OpenAI compatible * Added TogetherAI() class this allows for both the output = together.Complete.create( form of usage and also the client = TogetherAI() embed = client.embeddings.create( form of usage to keep the python library self consistent but also be OpenAI compatible * Added TogetherAI() class this allows for both the output = together.Complete.create( form of usage and also the client = TogetherAI() embed = client.embeddings.create( form of usage to keep the python library self consistent but also be OpenAI compatible * changed TogetherAI to Together class - added safety model to commands and changed Output to EmbeddingsOuput black ruff and mypy * changed TogetherAI to Together class - added safety model to commands and changed Output to EmbeddingsOuput black ruff and mypy --------- Co-authored-by: Carson Lam <[email protected]> Co-authored-by: Carson Lam <[email protected]>
- Loading branch information
1 parent
8ae1902
commit 87a05d2
Showing
7 changed files
with
76 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" | |
|
||
[tool.poetry] | ||
name = "together" | ||
version = "0.2.8" | ||
version = "0.2.9" | ||
authors = [ | ||
"Together AI <[email protected]>" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters