Skip to content

Commit 3cdda1d

Browse files
authored
Merge branch 'main' into ao-motor-insurance
2 parents e495893 + 7c2b52e commit 3cdda1d

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enablement Asssets
2+
AI and Data Strategy enablement presentations

ai/generative-ai-service/image-description-classification/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ with pre-formulated prompts to show the capabilities of modern LLMs to
88
concisely generate descriptions, classifications, as well as populate property
99
templates.
1010

11-
Reviewed: 06.10.2025
11+
Reviewed: 14.10.2025
1212

1313
Author: Matthias Wolf
1414

ai/generative-ai-service/image-description-classification/files/demo.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@
1717
"meta.llama-3.2-90b-vision-instruct",
1818
"meta.llama-4-maverick-17b-128e-instruct-fp8",
1919
"xai.grok-4",
20+
"xai.grok-4-fast-non-reasoning",
21+
"xai.grok-4-fast-reasoning",
2022
]
2123
DEFAULT_LLM = "xai.grok-4"
2224
DEFAULT_REGION = "us-chicago-1"
2325

2426

2527
load_dotenv()
2628

29+
logging.basicConfig(level=logging.INFO)
30+
logger = logging.getLogger(__name__)
2731

2832
compartment_id = os.environ.get("COMPARTMENT_ID", get_tenancy_id())
2933

@@ -140,10 +144,11 @@ async def invoke_chains(chains, upload, category_list, property_template):
140144
region = st.selectbox("Region", regions, region_idx)
141145
logging.info("Selected region %s", region)
142146

143-
models = sorted(
144-
set(st.cache_data(list_genai_models)(compartment_id, region))
145-
& set(MULTIMODALS)
146-
)
147+
available_models = st.cache_data(list_genai_models)(compartment_id, region)
148+
for model in sorted(available_models):
149+
logger.debug("Found available model: '%s'", model)
150+
151+
models = sorted(set(available_models) & set(MULTIMODALS))
147152
model_idx = 0
148153
if DEFAULT_LLM in models:
149154
model_idx = models.index(DEFAULT_LLM)

0 commit comments

Comments
 (0)