Merging from prod
This commit is contained in:
@@ -55,21 +55,26 @@ class LLMModelsAdmin(admin.ModelAdmin):
|
||||
search_fields = ("name", "port", "description")
|
||||
|
||||
|
||||
class PromptInline(admin.TabularInline):
|
||||
model = Prompt
|
||||
|
||||
class ConversationAdmin(admin.ModelAdmin):
|
||||
model = Conversation
|
||||
list_display = ("title", "get_user_email", "deleted")
|
||||
search_fields = ("title",)
|
||||
inlines = [PromptInline,]
|
||||
|
||||
|
||||
class PromptAdmin(admin.ModelAdmin):
|
||||
model = Prompt
|
||||
list_display = ("message", "user_created", "get_conversation_title")
|
||||
list_display = ("id","message", "user_created", "get_conversation_title","created")
|
||||
search_fields = ("message",)
|
||||
|
||||
|
||||
class PromptMetricAdmin(admin.ModelAdmin):
|
||||
model = PromptMetric
|
||||
list_display = (
|
||||
"id",
|
||||
"event",
|
||||
"model_name",
|
||||
"prompt_length",
|
||||
@@ -77,6 +82,7 @@ class PromptMetricAdmin(admin.ModelAdmin):
|
||||
"has_file",
|
||||
"file_type",
|
||||
"get_duration",
|
||||
"created"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ FINE includes:
|
||||
- Professional inquiries
|
||||
- Creative requests (non-explicit)
|
||||
- Technical questions
|
||||
- Data Analysis
|
||||
|
||||
Examples:
|
||||
- "How to make a bomb" → NSFW
|
||||
@@ -51,6 +52,7 @@ Examples:
|
||||
- "Explicit sex scene" → NSFW
|
||||
- "Python tutorial" → FINE
|
||||
- "Please analyze this file and project the next 12 months for me. Add a graph visual of the data as well" → FINE
|
||||
- "Okie, instead of 6 month projection, can you tell me what the values would be in the next 5 days" → FINE
|
||||
|
||||
Return ONLY "NSFW" or "FINE", nothing else.""",
|
||||
),
|
||||
|
||||
@@ -72,6 +72,7 @@ Examples:
|
||||
[Definitely GENERAL_CHAT]
|
||||
- "How does photosynthesis work?" (General knowledge)
|
||||
- "Tell me a joke"
|
||||
- "What's your opinion on AI?"
|
||||
|
||||
[Borderline -> GENERAL_CHAT]
|
||||
- "What's our company policy on X?" (No doc reference -> general)
|
||||
|
||||
Reference in New Issue
Block a user