PyGeoModel 1.0.13__tar.gz → 1.0.15__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.
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/MANIFEST.in +1 -1
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PKG-INFO +1 -1
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PyGeoModel.egg-info/PKG-INFO +1 -1
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PyGeoModel.egg-info/SOURCES.txt +2 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/__init__.py +1 -1
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/config.py +7 -7
- pygeomodel-1.0.15/pygeomodel/data/description_translations_en.json +5228 -0
- pygeomodel-1.0.15/pygeomodel/data/modellist_2070.csv +2072 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/modeler.py +135 -8
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/models.py +20 -3
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/notebook.py +33 -15
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/results.py +1 -1
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/setup.py +2 -2
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/tests/test_core_api.py +159 -7
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/LICENSE +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PyGeoModel.egg-info/dependency_links.txt +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PyGeoModel.egg-info/requires.txt +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/PyGeoModel.egg-info/top_level.txt +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/README.md +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/__init__.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/base.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/constants.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openModel.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/__init__.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/exceptions.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/http_client.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/mdlUtils.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/parameterValidator.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/ogmsServer2/openUtils/stateManager.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/client.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/consensus.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/context.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/data/__init__.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/data/computeModel.json +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/data/modelContext.txt +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/qa.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/pygeomodel/recommendation.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/scripts.py +0 -0
- {pygeomodel-1.0.13 → pygeomodel-1.0.15}/setup.cfg +0 -0
|
@@ -31,5 +31,7 @@ pygeomodel/recommendation.py
|
|
|
31
31
|
pygeomodel/results.py
|
|
32
32
|
pygeomodel/data/__init__.py
|
|
33
33
|
pygeomodel/data/computeModel.json
|
|
34
|
+
pygeomodel/data/description_translations_en.json
|
|
34
35
|
pygeomodel/data/modelContext.txt
|
|
36
|
+
pygeomodel/data/modellist_2070.csv
|
|
35
37
|
tests/test_core_api.py
|
|
@@ -52,13 +52,13 @@ def get_llm_config() -> LLMConfig:
|
|
|
52
52
|
dify = local.get("dify", {})
|
|
53
53
|
consensus = local.get("consensus", {})
|
|
54
54
|
return LLMConfig(
|
|
55
|
-
openai_api_key=os.environ.get("
|
|
56
|
-
openai_base_url=os.environ.get("
|
|
57
|
-
openai_model=os.environ.get("
|
|
58
|
-
dify_api_key=os.environ.get("
|
|
59
|
-
dify_base_url=os.environ.get("
|
|
60
|
-
consensus_api_key=consensus.get("api_key") or os.environ.get("
|
|
61
|
-
consensus_base_url=consensus.get("base_url") or os.environ.get("
|
|
55
|
+
openai_api_key=os.environ.get("PYGEOMODEL_OPENAI_API_KEY") or openai.get("api_key") or PUBLIC_DEMO_OPENAI_API_KEY,
|
|
56
|
+
openai_base_url=os.environ.get("PYGEOMODEL_OPENAI_BASE_URL") or openai.get("base_url") or PUBLIC_DEMO_OPENAI_BASE_URL,
|
|
57
|
+
openai_model=os.environ.get("PYGEOMODEL_OPENAI_MODEL") or openai.get("model") or PUBLIC_DEMO_OPENAI_MODEL,
|
|
58
|
+
dify_api_key=os.environ.get("PYGEOMODEL_DIFY_API_KEY") or dify.get("api_key") or PUBLIC_DEMO_DIFY_API_KEY,
|
|
59
|
+
dify_base_url=os.environ.get("PYGEOMODEL_DIFY_BASE_URL") or dify.get("base_url") or PUBLIC_DEMO_DIFY_BASE_URL,
|
|
60
|
+
consensus_api_key=consensus.get("api_key") or os.environ.get("PYGEOMODEL_CONSENSUS_API_KEY"),
|
|
61
|
+
consensus_base_url=consensus.get("base_url") or os.environ.get("PYGEOMODEL_CONSENSUS_BASE_URL") or LLMConfig.consensus_base_url,
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
|