cycls 0.0.2.54__tar.gz → 0.0.2.55__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cycls-0.0.2.54 → cycls-0.0.2.55}/PKG-INFO +1 -1
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/sdk.py +2 -2
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/web.py +3 -1
- {cycls-0.0.2.54 → cycls-0.0.2.55}/pyproject.toml +1 -1
- {cycls-0.0.2.54 → cycls-0.0.2.55}/README.md +0 -0
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/__init__.py +0 -0
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/runtime.py +0 -0
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/theme/assets/index-CE4acW4J.css +0 -0
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/theme/assets/index-DK37eWM7.js +0 -0
- {cycls-0.0.2.54 → cycls-0.0.2.55}/cycls/theme/index.html +0 -0
|
@@ -25,11 +25,11 @@ class Agent:
|
|
|
25
25
|
|
|
26
26
|
self.registered_functions = []
|
|
27
27
|
|
|
28
|
-
def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False):
|
|
28
|
+
def __call__(self, name=None, header="", intro="", title="", domain=None, auth=False, tier="free"):
|
|
29
29
|
def decorator(f):
|
|
30
30
|
self.registered_functions.append({
|
|
31
31
|
"func": f,
|
|
32
|
-
"config": ["theme", False, self.org, self.api_token, header, intro, title, auth],
|
|
32
|
+
"config": ["theme", False, self.org, self.api_token, header, intro, title, auth, tier],
|
|
33
33
|
# "name": name,
|
|
34
34
|
"name": name or (f.__name__).replace('_', '-'),
|
|
35
35
|
"domain": domain or f"{name}.cycls.ai",
|
|
@@ -49,7 +49,7 @@ XwIDAQAB
|
|
|
49
49
|
-----END PUBLIC KEY-----
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
|
-
def web(func, public_path="", prod=False, org=None, api_token=None, header="", intro="", title="", auth=True): # API auth
|
|
52
|
+
def web(func, public_path="", prod=False, org=None, api_token=None, header="", intro="", title="", auth=True, tier=""): # API auth
|
|
53
53
|
from fastapi import FastAPI, Request, HTTPException, status, Depends
|
|
54
54
|
from fastapi.responses import StreamingResponse , HTMLResponse
|
|
55
55
|
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
|
@@ -71,6 +71,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
|
|
|
71
71
|
title: str
|
|
72
72
|
prod: bool
|
|
73
73
|
auth: bool
|
|
74
|
+
tier: str
|
|
74
75
|
org: Optional[str]
|
|
75
76
|
pk_live: str
|
|
76
77
|
pk_test: str
|
|
@@ -114,6 +115,7 @@ def web(func, public_path="", prod=False, org=None, api_token=None, header="", i
|
|
|
114
115
|
title=title,
|
|
115
116
|
prod=prod,
|
|
116
117
|
auth=auth,
|
|
118
|
+
tier=tier,
|
|
117
119
|
org=org,
|
|
118
120
|
pk_live="pk_live_Y2xlcmsuY3ljbHMuYWkk",
|
|
119
121
|
pk_test="pk_test_c2VsZWN0LXNsb3RoLTU4LmNsZXJrLmFjY291bnRzLmRldiQ"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|