dmddl 0.2.10__tar.gz → 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.3
2
2
  Name: dmddl
3
- Version: 0.2.10
3
+ Version: 0.2.12
4
4
  Summary: cli tool for creating insert script from ddl script
5
5
  License: MIT
6
6
  Author: HoJLter
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dmddl"
3
- version = "0.2.10"
3
+ version = "0.2.12"
4
4
  description = "cli tool for creating insert script from ddl script"
5
5
  authors = [
6
6
  {name = "HoJLter",email = "hojlter.work@gmail.com"}
@@ -35,6 +35,9 @@ def make_query(provider, api_key, prompt):
35
35
  response = openai_request(base_prompt+prompt, api_key)
36
36
  return response
37
37
 
38
+ elif provider is None:
39
+ raise Exception("Use -c (--config) to configurate app and set LLM provider.")
40
+
38
41
  raise Exception("LLM Provider not found")
39
42
 
40
43
 
@@ -75,9 +78,9 @@ def main():
75
78
  "-c (--config): opens settings menu\n"
76
79
  "-s (--source): specify the input file")
77
80
 
78
-
79
81
  if args.config:
80
82
  set_parameters()
83
+
81
84
  if args.source:
82
85
  with open(args.source, "r", encoding='utf-8') as file:
83
86
  user_prompt = file.read()
File without changes
File without changes
File without changes
File without changes