cycls 0.0.2.10__py3-none-any.whl → 0.0.2.12__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/cycls.py CHANGED
@@ -14,11 +14,13 @@ current_dir = os.path.dirname(os.path.abspath(__file__))
14
14
  key_path = os.path.join(current_dir, 'key.pub')
15
15
  # print(key_path)
16
16
 
17
- from typing import List, Dict
17
+ from typing import List, Dict, Optional
18
18
  class Message(BaseModel):
19
19
  handle: str
20
20
  content: str
21
- history: List[Dict[str, str]]
21
+ # history: List[Dict[str, str]] = []
22
+ history: Optional[List[Dict[str, str]]] = None
23
+
22
24
 
23
25
  def find_available_port(start_port):
24
26
  port = start_port
@@ -111,4 +113,4 @@ class Cycls:
111
113
 
112
114
  Text = StreamingResponse
113
115
 
114
- # poetry publish --build
116
+ # ç
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cycls
3
- Version: 0.0.2.10
3
+ Version: 0.0.2.12
4
4
  Summary: Cycls SDK
5
5
  Author: Mohammed Jamal
6
6
  Author-email: mj@cycls.com
@@ -92,6 +92,7 @@ def app(m:Message):
92
92
  print(m.history)
93
93
  return Text(m.content)
94
94
  ```
95
+ `https://cycls.com/@cake`
95
96
 
96
97
  ## groq app with history
97
98
  ```py
@@ -124,6 +125,7 @@ async def app(m:Message):
124
125
  stream = await llm(x)
125
126
  return Text(stream)
126
127
  ```
128
+ `https://cycls.com/@groq-app`
127
129
 
128
130
  # Known issues
129
131
  - Dev mode doesn't work on Windows machines
@@ -0,0 +1,6 @@
1
+ cycls/__init__.py,sha256=mBBqS9LS550Uqluyxs7VdD1W-9sDkQfwqeX681PNiis,39
2
+ cycls/cycls.py,sha256=G3KrB3-lO8poJTX0CVtf4BCPzsraUz7sGXiG-M9f6UQ,4366
3
+ cycls/key.pub,sha256=hWHddJ0TceUqDpm2xV4hDuNZKAz_wHpWox1yLaZ-JVw,729
4
+ cycls-0.0.2.12.dist-info/METADATA,sha256=MJqDNNHtJSmtg00gI5lrMl7UddPlKJ_HAIrTWlKBy-0,2864
5
+ cycls-0.0.2.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ cycls-0.0.2.12.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- cycls/__init__.py,sha256=mBBqS9LS550Uqluyxs7VdD1W-9sDkQfwqeX681PNiis,39
2
- cycls/cycls.py,sha256=3PSVlL17yoqIEvPxi_3zYqbV2e0PinkFecCKlC_Ip8k,4317
3
- cycls/key.pub,sha256=hWHddJ0TceUqDpm2xV4hDuNZKAz_wHpWox1yLaZ-JVw,729
4
- cycls-0.0.2.10.dist-info/METADATA,sha256=vu7o4VI5BRvQkZN6XNFsazOW05DJbDC4xnm1jOW7YEM,2808
5
- cycls-0.0.2.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- cycls-0.0.2.10.dist-info/RECORD,,