Skip to content

Commit 1381243

Browse files
committed
model/split fix
1 parent 9f7fc13 commit 1381243

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/client/content/tools/tabs/split_embed.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ def display_split_embed() -> None:
134134
file_sources = ["OCI", "Local", "Web"]
135135
oci_lookup = st_common.state_configs_lookup("oci_configs", "auth_profile")
136136
oci_setup = oci_lookup.get(state.client_settings["oci"].get("auth_profile"))
137-
if not oci_setup or oci_setup.get("namespace") is None or oci_setup.get("tenancy") is None:
137+
if (
138+
not oci_setup
139+
or oci_setup.get("namespace") is None
140+
or (oci_setup.get("tenancy") is None and oci_setup.get("authentication") != "oke_workload_identity")
141+
):
138142
st.warning("OCI is not fully configured, some functionality is disabled", icon="⚠️")
139143
file_sources.remove("OCI")
140144

src/server/bootstrap/models.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,6 @@ def update_env_var(model: Model, provider: str, model_key: str, env_var: str):
8585
"max_completion_tokens": 4096,
8686
"frequency_penalty": 0.0,
8787
},
88-
{
89-
"id": "gpt-oss:20b",
90-
"enabled": os.getenv("ON_PREM_OLLAMA_URL") is not None,
91-
"type": "ll",
92-
"provider": "ollama",
93-
"api_key": "",
94-
"api_base": os.environ.get("ON_PREM_OLLAMA_URL", default="http://127.0.0.1:11434"),
95-
"context_length": 131072,
96-
"temperature": 1.0,
97-
"max_completion_tokens": 2048,
98-
"frequency_penalty": 0.0,
99-
},
10088
{
10189
"id": "meta-llama/Llama-3.2-1B-Instruct",
10290
"enabled": os.getenv("ON_PREM_VLLM_URL") is not None,

0 commit comments

Comments
 (0)