cycls 0.0.2.10__tar.gz → 0.0.2.12__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.
@@ -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
@@ -75,6 +75,7 @@ def app(m:Message):
75
75
  print(m.history)
76
76
  return Text(m.content)
77
77
  ```
78
+ `https://cycls.com/@cake`
78
79
 
79
80
  ## groq app with history
80
81
  ```py
@@ -107,6 +108,7 @@ async def app(m:Message):
107
108
  stream = await llm(x)
108
109
  return Text(stream)
109
110
  ```
111
+ `https://cycls.com/@groq-app`
110
112
 
111
113
  # Known issues
112
114
  - Dev mode doesn't work on Windows machines
@@ -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
+ # ç
@@ -3,7 +3,7 @@
3
3
  #version = "0.0.1.3"
4
4
 
5
5
  name = "cycls"
6
- version = "0.0.2.10"
6
+ version = "0.0.2.12"
7
7
 
8
8
  packages = [{ include = "cycls" }]
9
9
  description = "Cycls SDK"
File without changes
File without changes