Suvvyapi

Latest version: v1.0.2

Safety actively analyzes 688365 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.1a2

Message role now specified with enum

Example:
python
from suvvyapi.enums import Role
from suvvyapi.models import Message

message = Message(text="Hello World!", role=Role.HUMAN)


Available roles:
python
Role.HUMAN
Role.AI Should be used to specify employee message
Role.FUNCTION_CALL Not recommended to use, may conflict with API
Role.FUNCTION_RESULT Not recommended to use, may conflict with API


**Full Changelog**: https://github.com/barabum0/suvvyapi/compare/0.1a1...0.1a2

0.1a1

Added AsyncSuvvyAPIWrapper!

python
import asyncio
from suvvyapi import AsyncSuvvyAPIWrapper, Message

suvvy = AsyncSuvvyAPIWrapper("YOUR_TOKEN")
You can get your token at https://home.suvvy.ai/

async def main():
response = suvvy.predict(Message(text="Say hello to Python!"), "random_id")
'Hello!'

asyncio.run(main())


**Full Changelog**: https://github.com/barabum0/suvvyapi/compare/0.1a0...0.1a1

0.1a0

First release!

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.