Python: Duplicate Configuration Code Block in 02-running-prompts-from-file.ipynb
File: python/samples/getting_started/02-running-prompts-from-file.ipynb
Description: The following code block appears twice in the notebook and is only necessary once:
from services import Service
from samples.service_settings import ServiceSettings
service_settings = ServiceSettings()
# Select a service to use for this notebook (available services: OpenAI, AzureOpenAI, HuggingFace)
selectedService = (
Service.AzureOpenAI
if service_settings.global_llm_service is None
else Service(service_settings.global_llm_service.lower())
)
print(f"Using service type: {selectedService}")
Suggestion: Please remove the duplicate (and also the supporting english sentence preceeding the repeated block) so that this code only appears once to avoid confusion and keep the notebook concise.
It's a simple delete of the repeated code block in the notebook - I can open a PR or happy also for you to make this change yoursel(ves). :)
Please feel free to make a PR, as well, @gbm. Thanks for the support.
This issue is stale because it has been open for 90 days with no activity.