dmddl 0.2.12__tar.gz → 0.2.14__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.12
3
+ Version: 0.2.14
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.12"
3
+ version = "0.2.14"
4
4
  description = "cli tool for creating insert script from ddl script"
5
5
  authors = [
6
6
  {name = "HoJLter",email = "hojlter.work@gmail.com"}
@@ -31,15 +31,15 @@ def ask_api_key():
31
31
  def make_query(provider, api_key, prompt):
32
32
  console = Console()
33
33
  with console.status("[bold blue]Making query. Wait for result..."):
34
- if provider == "OpenAI":
35
- response = openai_request(base_prompt+prompt, api_key)
36
- return response
34
+ if provider:
35
+ if provider == "OpenAI":
36
+ response = openai_request(base_prompt+prompt, api_key)
37
+ return response
37
38
 
38
- elif provider is None:
39
+ raise Exception("LLM Provider not found")
40
+ else:
39
41
  raise Exception("Use -c (--config) to configurate app and set LLM provider.")
40
42
 
41
- raise Exception("LLM Provider not found")
42
-
43
43
 
44
44
  def write_output_file(data):
45
45
  with open("output.txt", 'w') as file:
File without changes
File without changes
File without changes
File without changes