forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice_settings.py
More file actions
22 lines (15 loc) · 854 Bytes
/
Copy pathservice_settings.py
File metadata and controls
22 lines (15 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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"