rubber-ducky 1.1.2__tar.gz → 1.1.3__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.
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/PKG-INFO +4 -1
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/README.md +3 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/ducky/ducky.py +9 -4
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/PKG-INFO +4 -1
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/setup.py +1 -1
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/LICENSE +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/ducky/__init__.py +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/SOURCES.txt +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/dependency_links.txt +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/entry_points.txt +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/requires.txt +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/rubber_ducky.egg-info/top_level.txt +0 -0
- {rubber_ducky-1.1.2 → rubber_ducky-1.1.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rubber-ducky
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: AI Companion for Pair Programming
|
|
5
5
|
Home-page: https://github.com/ParthSareen/ducky
|
|
6
6
|
Author: Parth Sareen
|
|
@@ -11,6 +11,9 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Dist: ollama
|
|
12
12
|
|
|
13
13
|
# rubber ducky
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="ducky_img.webp" alt="Ducky Image" width="200" height="200">
|
|
16
|
+
</p>
|
|
14
17
|
|
|
15
18
|
## tl;dr
|
|
16
19
|
- `pip install rubber-ducky`
|
|
@@ -25,9 +25,14 @@ class RubberDuck:
|
|
|
25
25
|
while True:
|
|
26
26
|
# Include previous responses in the prompt for context
|
|
27
27
|
context_prompt = "\n".join(responses) + "\n" + prompt
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
stream = await self.client.generate(model=self.model, prompt=context_prompt, stream=True)
|
|
29
|
+
response_text = ""
|
|
30
|
+
async for chunk in stream:
|
|
31
|
+
if 'response' in chunk:
|
|
32
|
+
print(chunk['response'], end='', flush=True)
|
|
33
|
+
response_text += chunk['response']
|
|
34
|
+
print() # New line after response completes
|
|
35
|
+
responses.append(response_text)
|
|
31
36
|
if not chain:
|
|
32
37
|
break
|
|
33
38
|
prompt = input("\nAny questions? \n")
|
|
@@ -67,7 +72,7 @@ async def ducky() -> None:
|
|
|
67
72
|
|
|
68
73
|
# Handle direct question from CLI
|
|
69
74
|
if args.question is not None:
|
|
70
|
-
question = " ".join(args.question)
|
|
75
|
+
question = " ".join(args.question) + " be as concise as possible"
|
|
71
76
|
await rubber_ducky.call_llama(prompt=question, chain=args.chain)
|
|
72
77
|
return
|
|
73
78
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rubber-ducky
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: AI Companion for Pair Programming
|
|
5
5
|
Home-page: https://github.com/ParthSareen/ducky
|
|
6
6
|
Author: Parth Sareen
|
|
@@ -11,6 +11,9 @@ License-File: LICENSE
|
|
|
11
11
|
Requires-Dist: ollama
|
|
12
12
|
|
|
13
13
|
# rubber ducky
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="ducky_img.webp" alt="Ducky Image" width="200" height="200">
|
|
16
|
+
</p>
|
|
14
17
|
|
|
15
18
|
## tl;dr
|
|
16
19
|
- `pip install rubber-ducky`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|