ziya 0.1.31__py3-none-any.whl → 0.1.33__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.

Potentially problematic release.


This version of ziya might be problematic. Click here for more details.

app/agents/agent.py CHANGED
@@ -33,7 +33,7 @@ model_id = {
33
33
  "sonnet": "anthropic.claude-3-sonnet-20240229-v1:0",
34
34
  "haiku": "anthropic.claude-3-haiku-20240307-v1:0",
35
35
  "opus": "anthropic.claude-3-opus-20240229-v1:0",
36
- }[os.environ.get("ZIYA_AWS_MODEL", "sonnet")]
36
+ }[os.environ.get("ZIYA_AWS_MODEL", "sonnet3.5")]
37
37
  logger.info(f"Using Claude Model: {model_id}")
38
38
 
39
39
  model = ChatBedrock(
app/agents/prompts.py CHANGED
@@ -6,22 +6,30 @@ template = """
6
6
 
7
7
  You are an excellent coder. Help the user with their coding tasks. You are given the codebase of the user in your context.
8
8
 
9
- IMPORTANT: When recommending code changes, format your response as a standard git diff unless the user specifies otherwise.
9
+ IMPORTANT: When recommending code changes, format your response as a standard Git diff format unless the user specifies otherwise.
10
10
  Follow these strict guidelines for diff formatting:
11
11
 
12
- 1. Start each diff block with ```diff (no asterisks or other characters before or after)
12
+ 1. Start each diff block with ```diff (use exactly this format, no asterisks or extra characters)
13
13
  2. For existing file modifications:
14
- - Use --- to indicate the original file path
15
- - Use +++ to indicate the new file path (usually the same as the original)
16
- - Use @@ to indicate the line numbers being changed
14
+ - Begin with diff --git a/<original_file_path> b/<new_file_path> on a new line.
15
+ - Use --- a/<original_file_path> to indicate the original file.
16
+ - Use +++ b/<new_file_path> to indicate the new file (usually the same as the original).
17
+ - Use @@ to indicate the line numbers being changed.
17
18
  - Use - for lines being removed
18
19
  - Use + for lines being added
19
20
  3. For new file creation:
20
- - Use --- /dev/null to indicate a new file
21
- - Use +++ b/<new_file_path> for the new file path
22
- - Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content
23
- - Use + for each line of the new file content
24
- 4. End each diff block with ``` on a new line
21
+ - Use diff --git a/dev/null b/<new_file_path> to start the diff.
22
+ - Use --- /dev/null to indicate a new file.
23
+ - Use +++ b/<new_file_path> for the new file path.
24
+ - Start with @@ -0,0 +1,<number_of_lines> @@ to indicate new file content.
25
+ - Use + for each line of the new file content.
26
+ 4. For file deletions:
27
+ - Use diff --git a/<deleted_file_path> b/dev/null.
28
+ - Use --- a/<deleted_file_path> to indicate the original file.
29
+ - Use +++ /dev/null to indicate that the file is being deleted.
30
+ - Do not include content under the diff.
31
+
32
+ 5. End each diff block with ``` on a new line
25
33
 
26
34
  Do not include any explanatory text within the diff blocks. If you need to provide explanations or comments, do so outside the diff blocks.
27
35
 
@@ -41,7 +49,7 @@ Below is the current codebase of the user:
41
49
  ---------------------------------------
42
50
  Codebase ends here.
43
51
 
44
- Remember to strictly adhere to the diff format guidelines provided above when suggesting code changes.
52
+ Remember to strictly adhere to the Git diff format guidelines provided above when suggesting code changes.
45
53
 
46
54
  """
47
55
 
app/main.py CHANGED
@@ -17,7 +17,7 @@ def parse_arguments():
17
17
  help="List of files or directories to exclude (e.g., --exclude 'tst,build,*.py')")
18
18
  parser.add_argument("--profile", type=str, default=None,
19
19
  help="AWS profile to use (e.g., --profile ziya)")
20
- parser.add_argument("--model", type=str, choices=["sonnet", "sonnet3.5", "haiku", "opus"], default="sonnet",
20
+ parser.add_argument("--model", type=str, choices=["sonnet", "sonnet3.5", "haiku", "opus"], default="sonnet3.5",
21
21
  help="AWS Bedrock Model to use (e.g., --model sonnet)")
22
22
  parser.add_argument("--port", type=int, default=6969,
23
23
  help="Port number to run Ziya frontend on (e.g., --port 8080)")
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.31"
3
+ version = "0.1.33"
4
4
  description = ""
5
5
  authors = ["Vishnu Krishnaprasad <vishnukool@gmail.com>"]
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ziya
3
- Version: 0.1.31
3
+ Version: 0.1.33
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -87,6 +87,6 @@ ziya
87
87
  `--port`: The port number for frontend app. Default is `6969`.
88
88
 
89
89
  ```bash
90
- ziya --exclude='tst,build,*.py' --profile=ziya --model=sonnet --port=8080
90
+ ziya --exclude='tst,build,*.py' --profile=ziya --model=sonnet3.5 --port=8080
91
91
  ```
92
92
 
@@ -1,8 +1,8 @@
1
1
  app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  app/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- app/agents/agent.py,sha256=dOUyRSaQPjSv41pH8oHbBACY6TRM9OUUabFuj4-EJnQ,3615
4
- app/agents/prompts.py,sha256=5VDB_kfiFZ5PcVpGY6oLVIWOySVupCf5HCsrjmDen28,2317
5
- app/main.py,sha256=DH-3gMO4MLwUA7RoMR6YwOTwrrbIeE3bOSyTFLkgS4w,4065
3
+ app/agents/agent.py,sha256=OwO1pWhQc8gAmNQO5mOxRe7Ravc_LHZjXOn5uKjiz8Y,3618
4
+ app/agents/prompts.py,sha256=s1gtElttFwaXCrW6FHOlvTPXbguyuZvrd1BEGmLkfhU,2785
5
+ app/main.py,sha256=8kNIuHBnbPC4ldA0wC7BhI9TzNjyDHZQX1caqhByEaY,4068
6
6
  app/server.py,sha256=EOuQ_DqNjYmD2prB4_ttiUxVIeSxGxno76feoD0zfXM,3488
7
7
  app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  app/utils/directory_util.py,sha256=2zxsSxSOZKesjhgjF3KguY__fC9XkjxHHnDbcxtnhXk,2762
@@ -11,7 +11,7 @@ app/utils/langchain_validation_util.py,sha256=RgmKayKMApvUA7SPF_DrBAcYdIzzLUVJfn
11
11
  app/utils/logging_utils.py,sha256=8JEcc1t7L-a0G4HLmM8zFydNNSOd5l2-gkTxviLQUns,280
12
12
  app/utils/print_tree_util.py,sha256=O4Rb-GS8UODxfH7Z6bZGsr-opG6QLmvdaU1im5kh4IA,1419
13
13
  app/utils/version_util.py,sha256=NcvMWIImJDcO9K5OMX6jJD4q6Zb8Y117Mu8sWIkhxEc,631
14
- pyproject.toml,sha256=wTme3K8eC1wHtYRIc8SiPql3_d557TiFyR7qUfwo4Fg,804
14
+ pyproject.toml,sha256=AHa-dSoiZJ11it4Jj9I4yiVRAdBjPYDumL5cE3zGYj8,804
15
15
  scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
16
16
  templates/asset-manifest.json,sha256=UKfHq1FKhejTUZgnopTN1Z3FZjnc92z9jh0UQF9_NLc,1157
17
17
  templates/favicon.ico,sha256=HgB8xAZdDHFK2lODUsp2H_Dds_i14pnpydx7NEJrNrU,15086
@@ -29,8 +29,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
29
29
  templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
30
30
  templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
31
31
  templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
32
- ziya-0.1.31.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
- ziya-0.1.31.dist-info/METADATA,sha256=x1pNBhGiHfZWqChiLBAnBL5WDgum8yWAhUNh34DfEgY,2691
34
- ziya-0.1.31.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
- ziya-0.1.31.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
- ziya-0.1.31.dist-info/RECORD,,
32
+ ziya-0.1.33.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
+ ziya-0.1.33.dist-info/METADATA,sha256=bJT1220GxmKWSk5FWclFNX7Jj-GlfexuDtoZyUr21uk,2694
34
+ ziya-0.1.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
+ ziya-0.1.33.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
+ ziya-0.1.33.dist-info/RECORD,,
File without changes
File without changes