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.
- {dmddl-0.2.10 → dmddl-0.2.12}/PKG-INFO +1 -1
- {dmddl-0.2.10 → dmddl-0.2.12}/pyproject.toml +1 -1
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/cli.py +4 -1
- {dmddl-0.2.10 → dmddl-0.2.12}/LICENSE +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/README.md +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/__init__.py +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/config/__init__.py +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/config/settings.py +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/models/__init__.py +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/models/llm.py +0 -0
- {dmddl-0.2.10 → dmddl-0.2.12}/src/dmddl/models/prompt.py +0 -0
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|