ziya 0.1.13__py3-none-any.whl → 0.1.15__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
@@ -29,10 +29,11 @@ if aws_profile:
29
29
  else:
30
30
  logger.info("No AWS profile specified via --aws-profile flag, using default credentials")
31
31
  model_id = {
32
+ "sonnet3.5": "anthropic.claude-3-5-sonnet-20240620-v1:0",
32
33
  "sonnet": "anthropic.claude-3-sonnet-20240229-v1:0",
33
34
  "haiku": "anthropic.claude-3-haiku-20240307-v1:0",
34
35
  "opus": "anthropic.claude-3-opus-20240229-v1:0",
35
- }[os.environ.get("ZIYA_AWS_MODEL", "haiku")]
36
+ }[os.environ.get("ZIYA_AWS_MODEL", "sonnet")]
36
37
  logger.info(f"Using Claude Model: {model_id}")
37
38
 
38
39
  model = ChatBedrock(
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", "haiku", "opus"], default="sonnet",
20
+ parser.add_argument("--model", type=str, choices=["sonnet", "sonnet3.5", "haiku", "opus"], default="sonnet",
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)")
app/server.py CHANGED
@@ -43,7 +43,7 @@ async def favicon():
43
43
  return FileResponse('../templates/favicon.ico')
44
44
 
45
45
 
46
- def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]], max_depth: int = 99) -> Dict[str, Any]:
46
+ def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]], max_depth: int = 12) -> Dict[str, Any]:
47
47
  should_ignore_fn = parse_gitignore_patterns(ignored_patterns)
48
48
 
49
49
  def count_tokens(file_path: str) -> int:
@@ -64,6 +64,8 @@ def get_folder_structure(directory: str, ignored_patterns: List[Tuple[str, str]]
64
64
  if entry.startswith('.'): # Skip hidden files/folders
65
65
  continue
66
66
  entry_path = os.path.join(current_dir, entry)
67
+ if os.path.islink(entry_path): # Skip symbolic links
68
+ continue
67
69
  if os.path.isdir(entry_path):
68
70
  if not should_ignore_fn(entry_path):
69
71
  sub_structure = get_structure(entry_path, current_depth + 1)
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ziya"
3
- version = "0.1.13"
3
+ version = "0.1.15"
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.13
3
+ Version: 0.1.15
4
4
  Summary:
5
5
  Author: Vishnu Krishnaprasad
6
6
  Author-email: vishnukool@gmail.com
@@ -82,7 +82,7 @@ ziya
82
82
 
83
83
  `--profile`: AWS profile to use for the Bedrock LLM.
84
84
 
85
- `--model`: The AWS Bedrock Model to use, one of `haiku`(default), `sonnet` or `opus`.
85
+ `--model`: The AWS Bedrock Model to use, one of `sonnet`(default), `sonnet3.5`, `haiku` or `opus`.
86
86
 
87
87
  `--port`: The port number for frontend app. Default is `6969`.
88
88
 
@@ -1,9 +1,9 @@
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=l_GmvQ_G4eKwd_9h4tH325jnQDS3_-NYFAX2yKcypPw,5363
3
+ app/agents/agent.py,sha256=oFqR0i9hMccn-kobPy_CiGv-ZA_ccI9U0JbDHE673u4,5426
4
4
  app/agents/prompts.py,sha256=LMwNzbYexns8er7mlF5VKhlobYH9yy37HR-axL_DNkk,1747
5
- app/main.py,sha256=WZlsI0_CKi37BawhHohGt9J3HJ7U_QeFwr16ed536Mo,4052
6
- app/server.py,sha256=nzm94XVuntOQgM61ivQGAMghG8HexeCSI29sziVSocI,3397
5
+ app/main.py,sha256=DH-3gMO4MLwUA7RoMR6YwOTwrrbIeE3bOSyTFLkgS4w,4065
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
9
9
  app/utils/gitignore_parser.py,sha256=Li3hQd60eclIuN2qxn8-NQ5sxRyMcnS88DFUxVHdx-A,7487
@@ -11,9 +11,8 @@ 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=kyROW3FoBvl30o2ASGTIteNmHl-jlATvWlknhEFIAFc,804
14
+ pyproject.toml,sha256=0KUZGV_Mm-NYzOX0b0Wugl-LLqHog1IIIRYFUHknfmU,804
15
15
  scripts.py,sha256=70BOvYoboMhl3Bxjy73m1ozmI8UV8JZVyi2RwUptkK8,809
16
- templates/.DS_Store,sha256=IWzGxsqGRcdoSHwV5Q9YF26GaZGnTClZWzKJgx33UyY,6148
17
16
  templates/asset-manifest.json,sha256=-cGZTauN08338NqyS6yzTSJs0xFusjbbXrLN7PJiAuE,1157
18
17
  templates/favicon.ico,sha256=HgB8xAZdDHFK2lODUsp2H_Dds_i14pnpydx7NEJrNrU,15086
19
18
  templates/index.html,sha256=Z3zEsMTo-Wd3aTGeW2gD9Vs6QvF_R7lYR9biVvlYnRM,465
@@ -30,8 +29,8 @@ templates/static/media/fa-solid-900.4d986b00ff9ca3828fbd.woff2,sha256=rhfBavvqIW
30
29
  templates/static/media/fa-solid-900.bacd5de623fb563b961a.ttf,sha256=tJkNDQxfXTjWLpNu6hIGdOWEx-6o3O44qXXAz5o3U5s,420332
31
30
  templates/static/media/fa-v4compatibility.c8e090db312b0bea2aa2.ttf,sha256=_49SX7BQxdJFGczI9XI9hbLlHt0_m8ZUivVa663U8mk,10832
32
31
  templates/static/media/fa-v4compatibility.cf7f5903d06b79ad60f1.woff2,sha256=x6hp-sopnRW-EKAfGdB2WnxNRtiSLZuTFyNcHkpvCYI,4792
33
- ziya-0.1.13.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
34
- ziya-0.1.13.dist-info/METADATA,sha256=HPDvbeEfsdrRh6YqSsiM7M8tfJ23V982HsAb7ky-0Ps,2706
35
- ziya-0.1.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- ziya-0.1.13.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
37
- ziya-0.1.13.dist-info/RECORD,,
32
+ ziya-0.1.15.dist-info/LICENSE,sha256=8CfErGEG13yY1Z-CDlIhAQawX2KOv-QI_2Ge2z6x8SU,1064
33
+ ziya-0.1.15.dist-info/METADATA,sha256=vjkR45O1rnOr1ZFmxfIOTxlHr4syruPShQZrsY4K27M,2719
34
+ ziya-0.1.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
35
+ ziya-0.1.15.dist-info/entry_points.txt,sha256=6-KUolj5XXeOPVCJGTJgUL_3lDVGxG-YtK5BTvFPyBg,147
36
+ ziya-0.1.15.dist-info/RECORD,,
templates/.DS_Store DELETED
Binary file
File without changes
File without changes