Files
microsoft--semantic-kernel/python/samples/service_settings.py
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

23 lines
854 B
Python

# Copyright (c) Microsoft. All rights reserved.
from typing import Literal
from semantic_kernel.kernel_pydantic import KernelBaseSettings
class ServiceSettings(KernelBaseSettings):
"""The Learn Resources Service Settings.
The settings are first loaded from environment variables. If the
environment variables are not found, the settings can be loaded from a .env file with the
encoding 'utf-8' as default or the specific encoding. If the settings are not found in the
.env file, the settings are ignored; however, validation will fail alerting that the settings
are missing.
Args:
global_llm_service: The LLM service to use for the samples, either "OpenAI" or "AzureOpenAI"
If not provided, defaults to "AzureOpenAI".
"""
global_llm_service: Literal["OpenAI", "AzureOpenAI"] = "AzureOpenAI"