cycls 0.0.2.49__py3-none-any.whl → 0.0.2.50__py3-none-any.whl
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/runtime.py
CHANGED
|
@@ -386,7 +386,7 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
386
386
|
data=data_payload,
|
|
387
387
|
files=files,
|
|
388
388
|
headers=headers,
|
|
389
|
-
timeout=1800 # Set a long timeout for the entire process
|
|
389
|
+
timeout=5*1800 # Set a long timeout for the entire process
|
|
390
390
|
)
|
|
391
391
|
|
|
392
392
|
# 4. Handle the server's response
|
cycls/sdk.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cycls
|
|
3
|
-
Version: 0.0.2.
|
|
3
|
+
Version: 0.0.2.50
|
|
4
4
|
Summary: Cycls SDK
|
|
5
5
|
Author: Mohammed J. AlRujayi
|
|
6
6
|
Author-email: mj@cycls.com
|
|
@@ -91,20 +91,19 @@ This will start a local server. Open your browser to http://localhost:8080 to in
|
|
|
91
91
|
This example creates a more advanced agent that calls the OpenAI API. It will be deployed to the cloud with authentication enabled.
|
|
92
92
|
|
|
93
93
|
```py
|
|
94
|
-
# deploy.py
|
|
95
94
|
import cycls
|
|
96
95
|
|
|
97
96
|
# Initialize the agent with dependencies and API keys
|
|
98
97
|
agent = cycls.Agent(
|
|
99
98
|
pip=["openai"],
|
|
100
|
-
key=
|
|
99
|
+
key="YOUR_CYCLS_KEY" # Get yours from https://cycls.com
|
|
101
100
|
)
|
|
102
101
|
|
|
103
102
|
# A helper function to call the LLM
|
|
104
103
|
async def llm(messages):
|
|
105
104
|
# Import inside the function: 'openai' is needed at runtime in the container.
|
|
106
105
|
import openai
|
|
107
|
-
client = openai.AsyncOpenAI(api_key="
|
|
106
|
+
client = openai.AsyncOpenAI(api_key="YOUR_OPENAI_API_KEY")
|
|
108
107
|
model = "gpt-4o"
|
|
109
108
|
response = await client.chat.completions.create(
|
|
110
109
|
model=model,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
cycls/__init__.py,sha256=bVT0dYTXLdSC3ZURgtm-DEOj-VO6RUM6zGsJB0zuj6Y,61
|
|
2
|
-
cycls/runtime.py,sha256=
|
|
3
|
-
cycls/sdk.py,sha256=
|
|
2
|
+
cycls/runtime.py,sha256=hLBtwtGz0FCW1-EPCJy6kMdF2fB3i6Df_H8-bm7qeK0,18223
|
|
3
|
+
cycls/sdk.py,sha256=jdgQDIQ1YP1y725bYYs6NRsA5UGor7Sso59BTcdBY1w,5869
|
|
4
4
|
cycls/theme/assets/index-CJ_4y8Hq.js,sha256=5D1ALXOnkyWH3KkmJ4DeYLzlN4JONL1xg3cCgUVyvLA,1103624
|
|
5
5
|
cycls/theme/index.html,sha256=GGoeZQYDvZpkqby9gxMK7XgCazsmJtJ5M4fDJE8IhwU,664
|
|
6
6
|
cycls/web.py,sha256=oc1a-Z3dFy4Ub7u0wF5_wrsvoosT3NgrOw4iWJ5KFns,4979
|
|
7
|
-
cycls-0.0.2.
|
|
8
|
-
cycls-0.0.2.
|
|
9
|
-
cycls-0.0.2.
|
|
7
|
+
cycls-0.0.2.50.dist-info/METADATA,sha256=IdbN2LxpZVv15FxZaOUl-N9otz_CQ7IDZ6zRtaxPwo0,4800
|
|
8
|
+
cycls-0.0.2.50.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
9
|
+
cycls-0.0.2.50.dist-info/RECORD,,
|
|
File without changes
|