mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context fix: #3514, I didn't know which integration tests @markwallace-microsoft is referring to but I fixed both notebooks by introducing a check before running the code that users have to define at the beginning of the notebook. ### Description Whichever service the user chooses (OpenAI - Azure OpenAI - Huggine Face) the code adjusts accordingly without the need to change anything later other than the .env file (obviously) and the Service name at the second cell of the two notebooks.
19 lines
421 B
Python
19 lines
421 B
Python
"""
|
|
This module defines an enumeration representing different services.
|
|
"""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class Service(Enum):
|
|
"""
|
|
Attributes:
|
|
OpenAI (str): Represents the OpenAI service.
|
|
AzureOpenAI (str): Represents the Azure OpenAI service.
|
|
HuggingFace (str): Represents the HuggingFace service.
|
|
"""
|
|
|
|
OpenAI = "openai"
|
|
AzureOpenAI = "azureopenai"
|
|
HuggingFace = "huggingface"
|