🌟 Exciting Major Version Update: Introducing Friendli Suite! 🌈
We're thrilled to announce the official release of Friendli Suite, bringing a wealth of enhancements and features to your fingertips.
With this major update, we've given our package and GitHub repository a facelift, transitioning from `periflow-client` to the all-new and improved `friendli-client`.
**Here's a rundown of the key changes:**
🔄 CLI Command Prefix Update
The CLI command prefix has undergone a transformation! Say goodbye to the old `pf` and embrace the fresh `friendli`. Now, to sign in, simply use `friendli login` instead of the previous `pf login`.
🐍 Python SDK Breaking Change
In the Python SDK, we've introduced a breaking change that aligns its semantics with the OpenAI Python SDK v1. Fear not, as this update brings more consistency and compatibility. Dive into the details and explore examples on our [documentation page](https://docs.periflow.ai/guides/serverless_endpoints/text_generation).
python
import os
from friendli import Friendli
client = Friendli(api_key=os.environ.get("FRIENDLI_API_KEY"))
chat_completion = client.chat.completions.create(
model="llama-2-13b-chat",
messages=[
{
"role": "user",
"content": "Tell me how to make a delicious pancake"
}
],
stream=False,
)
print(chat_completion.choices[0].message.content)
🚀 Upgrade now to unlock a world of possibilities with Friendli Suite! If you encounter any challenges or have questions, don't hesitate to reach out. Happy coding! 🤖💬