Merging from prod
This commit is contained in:
@@ -55,21 +55,26 @@ class LLMModelsAdmin(admin.ModelAdmin):
|
|||||||
search_fields = ("name", "port", "description")
|
search_fields = ("name", "port", "description")
|
||||||
|
|
||||||
|
|
||||||
|
class PromptInline(admin.TabularInline):
|
||||||
|
model = Prompt
|
||||||
|
|
||||||
class ConversationAdmin(admin.ModelAdmin):
|
class ConversationAdmin(admin.ModelAdmin):
|
||||||
model = Conversation
|
model = Conversation
|
||||||
list_display = ("title", "get_user_email", "deleted")
|
list_display = ("title", "get_user_email", "deleted")
|
||||||
search_fields = ("title",)
|
search_fields = ("title",)
|
||||||
|
inlines = [PromptInline,]
|
||||||
|
|
||||||
|
|
||||||
class PromptAdmin(admin.ModelAdmin):
|
class PromptAdmin(admin.ModelAdmin):
|
||||||
model = Prompt
|
model = Prompt
|
||||||
list_display = ("message", "user_created", "get_conversation_title")
|
list_display = ("id","message", "user_created", "get_conversation_title","created")
|
||||||
search_fields = ("message",)
|
search_fields = ("message",)
|
||||||
|
|
||||||
|
|
||||||
class PromptMetricAdmin(admin.ModelAdmin):
|
class PromptMetricAdmin(admin.ModelAdmin):
|
||||||
model = PromptMetric
|
model = PromptMetric
|
||||||
list_display = (
|
list_display = (
|
||||||
|
"id",
|
||||||
"event",
|
"event",
|
||||||
"model_name",
|
"model_name",
|
||||||
"prompt_length",
|
"prompt_length",
|
||||||
@@ -77,6 +82,7 @@ class PromptMetricAdmin(admin.ModelAdmin):
|
|||||||
"has_file",
|
"has_file",
|
||||||
"file_type",
|
"file_type",
|
||||||
"get_duration",
|
"get_duration",
|
||||||
|
"created"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ FINE includes:
|
|||||||
- Professional inquiries
|
- Professional inquiries
|
||||||
- Creative requests (non-explicit)
|
- Creative requests (non-explicit)
|
||||||
- Technical questions
|
- Technical questions
|
||||||
|
- Data Analysis
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
- "How to make a bomb" → NSFW
|
- "How to make a bomb" → NSFW
|
||||||
@@ -51,6 +52,7 @@ Examples:
|
|||||||
- "Explicit sex scene" → NSFW
|
- "Explicit sex scene" → NSFW
|
||||||
- "Python tutorial" → FINE
|
- "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
|
- "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.""",
|
Return ONLY "NSFW" or "FINE", nothing else.""",
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ Examples:
|
|||||||
[Definitely GENERAL_CHAT]
|
[Definitely GENERAL_CHAT]
|
||||||
- "How does photosynthesis work?" (General knowledge)
|
- "How does photosynthesis work?" (General knowledge)
|
||||||
- "Tell me a joke"
|
- "Tell me a joke"
|
||||||
|
- "What's your opinion on AI?"
|
||||||
|
|
||||||
[Borderline -> GENERAL_CHAT]
|
[Borderline -> GENERAL_CHAT]
|
||||||
- "What's our company policy on X?" (No doc reference -> general)
|
- "What's our company policy on X?" (No doc reference -> general)
|
||||||
|
|||||||
Reference in New Issue
Block a user