Files
semantic-kernel/python/notebooks/services.py
T
John Aziz d1e81201b3 Python: Fix notebooks 10 and 11 (#3557)
### 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.
2024-01-10 17:00:10 +00:00

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"