Skip to content

Commit

Permalink
Remove production templates and redundant Gemini template
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Dec 20, 2024
1 parent efd388c commit 4a934a2
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 270 deletions.
11 changes: 1 addition & 10 deletions shiny/_main_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ def chat_hello_providers(self) -> list[ShinyTemplate]:
def chat_enterprise(self) -> list[ShinyTemplate]:
return self._templates("templates/chat/enterprise")

@property
def chat_production(self) -> list[ShinyTemplate]:
return self._templates("templates/chat/production")


shiny_internal_templates = ShinyInternalTemplates()

Expand Down Expand Up @@ -264,7 +260,6 @@ def use_internal_template(
chat_templates = [
*shiny_internal_templates.chat_hello_providers,
*shiny_internal_templates.chat_enterprise,
*shiny_internal_templates.chat_production,
]

menu_choices = [
Expand Down Expand Up @@ -356,7 +351,6 @@ def use_internal_chat_ai_template(
choices=[
Choice(title="By provider...", value="_chat-ai_hello-providers"),
Choice(title="Enterprise providers...", value="_chat-ai_enterprise"),
Choice(title="Production-ready chat AI", value="_chat-ai_production"),
back_choice,
cancel_choice,
],
Expand All @@ -375,9 +369,7 @@ def use_internal_chat_ai_template(
)
return

if input == "_chat-ai_production":
template_choices = shiny_internal_templates.chat_production
elif input == "_chat-ai_enterprise":
if input == "_chat-ai_enterprise":
template_choices = shiny_internal_templates.chat_enterprise
else:
template_choices = shiny_internal_templates.chat_hello_providers
Expand All @@ -392,7 +384,6 @@ def use_internal_chat_ai_template(
[
*shiny_internal_templates.chat_hello_providers,
*shiny_internal_templates.chat_enterprise,
*shiny_internal_templates.chat_production,
],
choice,
)
Expand Down
5 changes: 0 additions & 5 deletions shiny/templates/chat/hello-providers/gemini/_template.json

This file was deleted.

42 changes: 0 additions & 42 deletions shiny/templates/chat/hello-providers/gemini/app.py

This file was deleted.

26 changes: 0 additions & 26 deletions shiny/templates/chat/hello-providers/gemini/app_utils.py

This file was deleted.

4 changes: 0 additions & 4 deletions shiny/templates/chat/hello-providers/gemini/requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions shiny/templates/chat/production/anthropic/_template.json

This file was deleted.

58 changes: 0 additions & 58 deletions shiny/templates/chat/production/anthropic/app.py

This file was deleted.

26 changes: 0 additions & 26 deletions shiny/templates/chat/production/anthropic/app_utils.py

This file was deleted.

4 changes: 0 additions & 4 deletions shiny/templates/chat/production/anthropic/requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions shiny/templates/chat/production/openai/_template.json

This file was deleted.

55 changes: 0 additions & 55 deletions shiny/templates/chat/production/openai/app.py

This file was deleted.

26 changes: 0 additions & 26 deletions shiny/templates/chat/production/openai/app_utils.py

This file was deleted.

4 changes: 0 additions & 4 deletions shiny/templates/chat/production/openai/requirements.txt

This file was deleted.

0 comments on commit 4a934a2

Please sign in to comment.