rubber-ducky 1.1.1__py3-none-any.whl → 1.1.2__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.
- ducky/ducky.py +4 -3
- {rubber_ducky-1.1.1.dist-info → rubber_ducky-1.1.2.dist-info}/METADATA +1 -1
- rubber_ducky-1.1.2.dist-info/RECORD +8 -0
- {rubber_ducky-1.1.1.dist-info → rubber_ducky-1.1.2.dist-info}/WHEEL +1 -1
- rubber_ducky-1.1.1.dist-info/RECORD +0 -8
- {rubber_ducky-1.1.1.dist-info → rubber_ducky-1.1.2.dist-info}/LICENSE +0 -0
- {rubber_ducky-1.1.1.dist-info → rubber_ducky-1.1.2.dist-info}/entry_points.txt +0 -0
- {rubber_ducky-1.1.1.dist-info → rubber_ducky-1.1.2.dist-info}/top_level.txt +0 -0
ducky/ducky.py
CHANGED
|
@@ -25,7 +25,7 @@ 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
|
-
response = await self.client.generate(model=
|
|
28
|
+
response = await self.client.generate(model=self.model, prompt=context_prompt)
|
|
29
29
|
print(response['response'])
|
|
30
30
|
responses.append(response['response'])
|
|
31
31
|
if not chain:
|
|
@@ -45,7 +45,7 @@ def read_files_from_dir(directory: str) -> str:
|
|
|
45
45
|
|
|
46
46
|
async def ducky() -> None:
|
|
47
47
|
parser = argparse.ArgumentParser()
|
|
48
|
-
parser.add_argument("question", nargs="
|
|
48
|
+
parser.add_argument("question", nargs="*", help="Direct question to ask", default=None)
|
|
49
49
|
parser.add_argument("--prompt", "-p", help="Custom prompt to be used", default=None)
|
|
50
50
|
parser.add_argument("--file", "-f", help="The file to be processed", default=None)
|
|
51
51
|
parser.add_argument("--directory", "-d", help="The directory to be processed", default=None)
|
|
@@ -67,7 +67,8 @@ async def ducky() -> None:
|
|
|
67
67
|
|
|
68
68
|
# Handle direct question from CLI
|
|
69
69
|
if args.question is not None:
|
|
70
|
-
|
|
70
|
+
question = " ".join(args.question)
|
|
71
|
+
await rubber_ducky.call_llama(prompt=question, chain=args.chain)
|
|
71
72
|
return
|
|
72
73
|
|
|
73
74
|
if args.file is None and args.directory is None:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ducky/__init__.py,sha256=_7imP8Jc2SIapn4fzGkspmKvqxPTFDcDJWHZ_o_MnlE,24
|
|
2
|
+
ducky/ducky.py,sha256=WhtT9qOIU7xn67Hm9J_F1VPek7brLqqoGmlUlBAl63A,3577
|
|
3
|
+
rubber_ducky-1.1.2.dist-info/LICENSE,sha256=gQ1rCmw18NqTk5GxG96F6vgyN70e1c4kcKUtWDwdNaE,1069
|
|
4
|
+
rubber_ducky-1.1.2.dist-info/METADATA,sha256=aeTZzl1pw3SAXDDSg7CSh5BN9NRzRaAyjWATkOy9Tjg,1638
|
|
5
|
+
rubber_ducky-1.1.2.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
|
6
|
+
rubber_ducky-1.1.2.dist-info/entry_points.txt,sha256=LPndtj8UqEWtwYApv5LJJniH4FUrsriOqV2LA1X_UPQ,43
|
|
7
|
+
rubber_ducky-1.1.2.dist-info/top_level.txt,sha256=4Q75MONDNPpQ3o17bTu7RFuKwFhTIRzlXP3_LDWQQ30,6
|
|
8
|
+
rubber_ducky-1.1.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
ducky/__init__.py,sha256=_7imP8Jc2SIapn4fzGkspmKvqxPTFDcDJWHZ_o_MnlE,24
|
|
2
|
-
ducky/ducky.py,sha256=NwOzoLMd7fzimq-4OkfEL6buACY2Y13cze2uLEerVBU,3540
|
|
3
|
-
rubber_ducky-1.1.1.dist-info/LICENSE,sha256=gQ1rCmw18NqTk5GxG96F6vgyN70e1c4kcKUtWDwdNaE,1069
|
|
4
|
-
rubber_ducky-1.1.1.dist-info/METADATA,sha256=uPUKC85hZxy2j2jVojKPzWH_rVYt1GAAB7Z1deWUFbk,1638
|
|
5
|
-
rubber_ducky-1.1.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
6
|
-
rubber_ducky-1.1.1.dist-info/entry_points.txt,sha256=LPndtj8UqEWtwYApv5LJJniH4FUrsriOqV2LA1X_UPQ,43
|
|
7
|
-
rubber_ducky-1.1.1.dist-info/top_level.txt,sha256=4Q75MONDNPpQ3o17bTu7RFuKwFhTIRzlXP3_LDWQQ30,6
|
|
8
|
-
rubber_ducky-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|