blue-assistant 4.178.1__tar.gz → 4.194.1__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.
Files changed (76) hide show
  1. {blue_assistant-4.178.1/blue_assistant.egg-info → blue_assistant-4.194.1}/PKG-INFO +2 -2
  2. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/README.md +1 -1
  3. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/alias.sh +1 -2
  4. blue_assistant-4.194.1/blue_assistant/.abcli/hue/set.sh +11 -0
  5. blue_assistant-4.194.1/blue_assistant/.abcli/hue.sh +15 -0
  6. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/help.sh +3 -0
  7. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/__init__.py +1 -1
  8. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/config.env +3 -1
  9. blue_assistant-4.194.1/blue_assistant/env.py +17 -0
  10. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/help/functions.py +2 -0
  11. blue_assistant-4.194.1/blue_assistant/help/hue.py +36 -0
  12. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/actions/generate_text.py +1 -1
  13. blue_assistant-4.194.1/blue_assistant/script/repository/hue/__main__.py +66 -0
  14. blue_assistant-4.194.1/blue_assistant/script/repository/hue/functions.py +53 -0
  15. {blue_assistant-4.178.1 → blue_assistant-4.194.1/blue_assistant.egg-info}/PKG-INFO +2 -2
  16. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant.egg-info/SOURCES.txt +5 -0
  17. blue_assistant-4.178.1/blue_assistant/env.py +0 -33
  18. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/LICENSE +0 -0
  19. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/MANIFEST.in +0 -0
  20. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/abcli.sh +0 -0
  21. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/actions.sh +0 -0
  22. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/blue_assistant.sh +0 -0
  23. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/browse.sh +0 -0
  24. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/script/list.sh +0 -0
  25. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/script/run.sh +0 -0
  26. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/script.sh +0 -0
  27. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/README.sh +0 -0
  28. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/script_list.sh +0 -0
  29. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/script_run.sh +0 -0
  30. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/version.sh +0 -0
  31. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/tests/web_crawl.sh +0 -0
  32. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/web/crawl.sh +0 -0
  33. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/.abcli/web.sh +0 -0
  34. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/README.py +0 -0
  35. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/__main__.py +0 -0
  36. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/functions.py +0 -0
  37. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/help/__init__.py +0 -0
  38. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/help/__main__.py +0 -0
  39. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/help/script.py +0 -0
  40. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/help/web.py +0 -0
  41. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/host.py +0 -0
  42. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/logger.py +0 -0
  43. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/sample.env +0 -0
  44. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/__init__.py +0 -0
  45. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/__main__.py +0 -0
  46. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/actions/__init__.py +0 -0
  47. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/actions/generate_image.py +0 -0
  48. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/actions/generic.py +0 -0
  49. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/load.py +0 -0
  50. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/__init__.py +0 -0
  51. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/base/__init__.py +0 -0
  52. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/base/classes.py +0 -0
  53. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/blue_amo/__init__.py +0 -0
  54. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/blue_amo/actions/__init__.py +0 -0
  55. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/blue_amo/actions/slicing_into_frames.py +0 -0
  56. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/blue_amo/actions/stitching_the_frames.py +0 -0
  57. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/blue_amo/classes.py +0 -0
  58. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/generic/__init__.py +0 -0
  59. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/generic/classes.py +0 -0
  60. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/hue/__init__.py +0 -0
  61. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/hue/classes.py +0 -0
  62. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/orbital_data_explorer/__init__.py +0 -0
  63. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/orbital_data_explorer/actions/__init__.py +0 -0
  64. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/orbital_data_explorer/actions/researching_the_questions.py +0 -0
  65. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/script/repository/orbital_data_explorer/classes.py +0 -0
  66. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/urls.py +0 -0
  67. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/web/__init__.py +0 -0
  68. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/web/__main__.py +0 -0
  69. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant/web/crawl.py +0 -0
  70. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant.egg-info/dependency_links.txt +0 -0
  71. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant.egg-info/requires.txt +0 -0
  72. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/blue_assistant.egg-info/top_level.txt +0 -0
  73. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/pyproject.toml +0 -0
  74. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/requirements.txt +0 -0
  75. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/setup.cfg +0 -0
  76. {blue_assistant-4.178.1 → blue_assistant-4.194.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_assistant
3
- Version: 4.178.1
3
+ Version: 4.194.1
4
4
  Summary: 🧠 An AI Assistant.
5
5
  Home-page: https://github.com/kamangir/blue-assistant
6
6
  Author: Arash Abadpour (Kamangir)
@@ -84,4 +84,4 @@ graph LR
84
84
 
85
85
  [![pylint](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-assistant.svg)](https://pypi.org/project/blue-assistant/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-assistant)](https://pypistats.org/packages/blue-assistant)
86
86
 
87
- built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.178.1`](https://github.com/kamangir/blue-assistant).
87
+ built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.194.1`](https://github.com/kamangir/blue-assistant).
@@ -39,4 +39,4 @@ graph LR
39
39
 
40
40
  [![pylint](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-assistant.svg)](https://pypi.org/project/blue-assistant/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-assistant)](https://pypistats.org/packages/blue-assistant)
41
41
 
42
- built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.178.1`](https://github.com/kamangir/blue-assistant).
42
+ built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.194.1`](https://github.com/kamangir/blue-assistant).
@@ -2,5 +2,4 @@
2
2
 
3
3
  alias @assistant=blue_assistant
4
4
 
5
-
6
-
5
+ alias @hue=blue_assistant_hue
@@ -0,0 +1,11 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function blue_assistant_hue_set() {
4
+ local options=$1
5
+ local do_dryrun=$(abcli_option_int "$options" dryrun 0)
6
+
7
+ abcli_eval dryrun=$do_dryrun \
8
+ python3 -m blue_assistant.script.repository.hue \
9
+ set \
10
+ "${@:2}"
11
+ }
@@ -0,0 +1,15 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function blue_assistant_hue() {
4
+ local task=$(abcli_unpack_keyword $1 help)
5
+
6
+ local function_name=blue_assistant_hue_$task
7
+ if [[ $(type -t $function_name) == "function" ]]; then
8
+ $function_name "${@:2}"
9
+ return
10
+ fi
11
+
12
+ python3 -m blue_assistant.hue "$@"
13
+ }
14
+
15
+ abcli_source_caller_suffix_path /hue
@@ -26,6 +26,9 @@ function test_blue_assistant_help() {
26
26
  "@assistant web" \
27
27
  "@assistant web crawl" \
28
28
  \
29
+ "@hue" \
30
+ "@hue set" \
31
+ \
29
32
  "blue_assistant"; do
30
33
  abcli_eval ,$options \
31
34
  abcli_help $module
@@ -4,7 +4,7 @@ ICON = "🧠"
4
4
 
5
5
  DESCRIPTION = f"{ICON} An AI Assistant."
6
6
 
7
- VERSION = "4.178.1"
7
+ VERSION = "4.194.1"
8
8
 
9
9
  REPO_NAME = "blue-assistant"
10
10
 
@@ -3,4 +3,6 @@ BLUE_ASSISTANT_TEXT_MAX_TOKENS=2000
3
3
 
4
4
  BLUE_ASSISTANT_IMAGE_DEFAULT_MODEL=dall-e-3
5
5
  BLUE_ASSISTANT_IMAGE_DEFAULT_QUALITY=standard
6
- BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE=1024x1024
6
+ BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE=1024x1024
7
+
8
+ HUE_BRIDGE_IP_ADDRESS=192.168.1.95
@@ -0,0 +1,17 @@
1
+ from blue_options.env import load_config, load_env, get_env
2
+
3
+ load_env(__name__)
4
+ load_config(__name__)
5
+
6
+
7
+ BLUE_ASSISTANT_TEXT_DEFAULT_MODEL = get_env("BLUE_ASSISTANT_TEXT_DEFAULT_MODEL")
8
+
9
+ BLUE_ASSISTANT_TEXT_MAX_TOKENS = get_env("BLUE_ASSISTANT_TEXT_MAX_TOKENS", 2000)
10
+
11
+ BLUE_ASSISTANT_IMAGE_DEFAULT_MODEL = get_env("BLUE_ASSISTANT_IMAGE_DEFAULT_MODEL")
12
+
13
+ BLUE_ASSISTANT_IMAGE_DEFAULT_QUALITY = get_env("BLUE_ASSISTANT_IMAGE_DEFAULT_QUALITY")
14
+
15
+ BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE = get_env("BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE")
16
+
17
+ HUE_BRIDGE_IP_ADDRESS = get_env("HUE_BRIDGE_IP_ADDRESS")
@@ -4,6 +4,7 @@ from blue_options.terminal import show_usage, xtra
4
4
  from abcli.help.generic import help_functions as generic_help_functions
5
5
 
6
6
  from blue_assistant import ALIAS
7
+ from blue_assistant.help.hue import help_functions as help_hue
7
8
  from blue_assistant.help.script import help_functions as help_script
8
9
  from blue_assistant.help.web import help_functions as help_web
9
10
 
@@ -30,6 +31,7 @@ help_functions = generic_help_functions(plugin_name=ALIAS)
30
31
  help_functions.update(
31
32
  {
32
33
  "browse": help_browse,
34
+ "hue": help_hue,
33
35
  "script": help_script,
34
36
  "web": help_web,
35
37
  }
@@ -0,0 +1,36 @@
1
+ from typing import List
2
+
3
+ from blue_options.terminal import show_usage, xtra
4
+
5
+ from blue_assistant import env
6
+
7
+
8
+ def help_set(
9
+ tokens: List[str],
10
+ mono: bool,
11
+ ) -> str:
12
+ options = xtra("dryrun", mono=mono)
13
+
14
+ args = [
15
+ f"[--bridge_ip <{env.HUE_BRIDGE_IP_ADDRESS}>]",
16
+ "[--username <username>]",
17
+ "[--light_id <light_id>]",
18
+ "[--hue <65535>]",
19
+ "[--saturation <254>]",
20
+ "[--verbose 1]",
21
+ ]
22
+ return show_usage(
23
+ [
24
+ "@hue",
25
+ "set",
26
+ f"[{options}]",
27
+ ]
28
+ + args,
29
+ "set hue lights.",
30
+ mono=mono,
31
+ )
32
+
33
+
34
+ help_functions = {
35
+ "set": help_set,
36
+ }
@@ -44,7 +44,7 @@ def generate_text(
44
44
  "content": [
45
45
  {
46
46
  "type": "text",
47
- "text": script.nodes[context_node]["output"],
47
+ "text": script.nodes[context_node].get("output", ""),
48
48
  }
49
49
  ],
50
50
  }
@@ -0,0 +1,66 @@
1
+ import argparse
2
+
3
+ from blueness import module
4
+ from blueness.argparse.generic import sys_exit
5
+
6
+ from blue_assistant import NAME
7
+ from blue_assistant import env
8
+ from blue_assistant.script.repository.hue.functions import set_light_color
9
+ from blue_assistant.logger import logger
10
+
11
+ NAME = module.name(__file__, NAME)
12
+
13
+ parser = argparse.ArgumentParser(NAME)
14
+ parser.add_argument(
15
+ "task",
16
+ type=str,
17
+ help="set",
18
+ )
19
+ parser.add_argument(
20
+ "--bridge_ip",
21
+ type=str,
22
+ default=env.HUE_BRIDGE_IP_ADDRESS,
23
+ )
24
+ parser.add_argument(
25
+ "--username",
26
+ type=str,
27
+ help="aka API key",
28
+ )
29
+ parser.add_argument(
30
+ "--light_id",
31
+ type=str,
32
+ )
33
+ parser.add_argument(
34
+ "--hue",
35
+ type=int,
36
+ default=65535,
37
+ help="0 to 65535",
38
+ )
39
+ parser.add_argument(
40
+ "--saturation",
41
+ type=int,
42
+ default=254,
43
+ help="0 to 254",
44
+ )
45
+ parser.add_argument(
46
+ "--verbose",
47
+ type=int,
48
+ default=0,
49
+ help="0 | 1",
50
+ )
51
+ args = parser.parse_args()
52
+
53
+ success = False
54
+ if args.task == "set":
55
+ success = set_light_color(
56
+ bridge_ip=args.bridge_ip,
57
+ username=args.username,
58
+ light_id=args.light_id,
59
+ hue=args.hue,
60
+ saturation=args.saturation,
61
+ verbose=args.verbose == 1,
62
+ )
63
+ else:
64
+ success = None
65
+
66
+ sys_exit(logger, NAME, args.task, success)
@@ -0,0 +1,53 @@
1
+ import requests
2
+
3
+ from blueness import module
4
+
5
+ from blue_assistant import NAME
6
+ from blue_assistant import env
7
+ from blue_assistant.logger import logger
8
+
9
+ NAME = module.name(__file__, NAME)
10
+
11
+
12
+ def set_light_color(
13
+ username: str,
14
+ light_id: str,
15
+ hue: int, # 0 to 65535
16
+ saturation: int, # 0 to 254
17
+ bridge_ip: str = env.HUE_BRIDGE_IP_ADDRESS,
18
+ verbose: bool = False,
19
+ ) -> bool:
20
+ logger.info(
21
+ "{}.set_light_color({}@{}:{}) -> hue=0x{:x}, saturation=0x{:x}".format(
22
+ NAME,
23
+ username,
24
+ bridge_ip,
25
+ light_id,
26
+ hue,
27
+ saturation,
28
+ )
29
+ )
30
+
31
+ # hue-2025-03-13-1xjr1z
32
+
33
+ # Construct the API endpoint URL
34
+ url = f"http://{bridge_ip}/api/{username}/lights/{light_id}/state"
35
+
36
+ # Prepare the payload with the desired hue and saturation
37
+ payload = {
38
+ "hue": hue,
39
+ "sat": saturation,
40
+ }
41
+
42
+ response = requests.put(url, json=payload)
43
+
44
+ # https://chat.openai.com/c/6deb94d0-826a-48de-b5ef-f7d8da416c82
45
+ # response.raise_for_status()
46
+ if response.status_code // 100 != 2:
47
+ logger.error(response)
48
+ return False
49
+
50
+ if verbose:
51
+ logger.info(response.json())
52
+
53
+ return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_assistant
3
- Version: 4.178.1
3
+ Version: 4.194.1
4
4
  Summary: 🧠 An AI Assistant.
5
5
  Home-page: https://github.com/kamangir/blue-assistant
6
6
  Author: Arash Abadpour (Kamangir)
@@ -84,4 +84,4 @@ graph LR
84
84
 
85
85
  [![pylint](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-assistant.svg)](https://pypi.org/project/blue-assistant/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-assistant)](https://pypistats.org/packages/blue-assistant)
86
86
 
87
- built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.178.1`](https://github.com/kamangir/blue-assistant).
87
+ built by 🌀 [`blue_options-4.234.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.194.1`](https://github.com/kamangir/blue-assistant).
@@ -24,8 +24,10 @@ blue_assistant/.abcli/actions.sh
24
24
  blue_assistant/.abcli/alias.sh
25
25
  blue_assistant/.abcli/blue_assistant.sh
26
26
  blue_assistant/.abcli/browse.sh
27
+ blue_assistant/.abcli/hue.sh
27
28
  blue_assistant/.abcli/script.sh
28
29
  blue_assistant/.abcli/web.sh
30
+ blue_assistant/.abcli/hue/set.sh
29
31
  blue_assistant/.abcli/script/list.sh
30
32
  blue_assistant/.abcli/script/run.sh
31
33
  blue_assistant/.abcli/tests/README.sh
@@ -38,6 +40,7 @@ blue_assistant/.abcli/web/crawl.sh
38
40
  blue_assistant/help/__init__.py
39
41
  blue_assistant/help/__main__.py
40
42
  blue_assistant/help/functions.py
43
+ blue_assistant/help/hue.py
41
44
  blue_assistant/help/script.py
42
45
  blue_assistant/help/web.py
43
46
  blue_assistant/script/__init__.py
@@ -58,7 +61,9 @@ blue_assistant/script/repository/blue_amo/actions/stitching_the_frames.py
58
61
  blue_assistant/script/repository/generic/__init__.py
59
62
  blue_assistant/script/repository/generic/classes.py
60
63
  blue_assistant/script/repository/hue/__init__.py
64
+ blue_assistant/script/repository/hue/__main__.py
61
65
  blue_assistant/script/repository/hue/classes.py
66
+ blue_assistant/script/repository/hue/functions.py
62
67
  blue_assistant/script/repository/orbital_data_explorer/__init__.py
63
68
  blue_assistant/script/repository/orbital_data_explorer/classes.py
64
69
  blue_assistant/script/repository/orbital_data_explorer/actions/__init__.py
@@ -1,33 +0,0 @@
1
- import os
2
- from blue_options.env import load_config, load_env
3
-
4
- load_env(__name__)
5
- load_config(__name__)
6
-
7
-
8
- BLUE_ASSISTANT_TEXT_DEFAULT_MODEL = os.getenv(
9
- "BLUE_ASSISTANT_TEXT_DEFAULT_MODEL",
10
- "",
11
- )
12
-
13
- BLUE_ASSISTANT_TEXT_MAX_TOKENS_str = os.getenv("BLUE_ASSISTANT_TEXT_MAX_TOKENS", "")
14
- try:
15
- BLUE_ASSISTANT_TEXT_MAX_TOKENS = int(BLUE_ASSISTANT_TEXT_MAX_TOKENS_str)
16
- except Exception:
17
- BLUE_ASSISTANT_TEXT_MAX_TOKENS = 2000
18
-
19
-
20
- BLUE_ASSISTANT_IMAGE_DEFAULT_MODEL = os.getenv(
21
- "BLUE_ASSISTANT_IMAGE_DEFAULT_MODEL",
22
- "",
23
- )
24
-
25
- BLUE_ASSISTANT_IMAGE_DEFAULT_QUALITY = os.getenv(
26
- "BLUE_ASSISTANT_IMAGE_DEFAULT_QUALITY",
27
- "",
28
- )
29
-
30
- BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE = os.getenv(
31
- "BLUE_ASSISTANT_IMAGE_DEFAULT_SIZE",
32
- "",
33
- )