generated from streamlit/chatbot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
48 lines (33 loc) · 1.11 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""Configuration and constants for the Streamlit application."""
from __future__ import annotations
from pydantic import BaseModel, ConfigDict
# Type aliases
ModelName = str
SystemPrompt = str
# Default values
DEFAULT_MODEL = "gpt-4-turbo-preview"
DEFAULT_SYSTEM_PROMPT = """
Du bist ein KI-Assistent der dabei hilft, Informationen zu strukturieren und zu analysieren.
Gib deine Antworten auf Deutsch.
"""
class FormData(BaseModel):
"""Data structure for form inputs."""
title: str = ""
"""Titel des Projekts"""
description: str = ""
"""Beschreibung des Projekts"""
requirements: str = ""
"""Anforderungen des Projekts"""
constraints: str = ""
"""Einschränkungen des Projekts"""
additional_info: str = ""
"""Weitere relevante Informationen"""
model_config = ConfigDict(use_attribute_docstrings=True)
# Field descriptions for the form - matches FormData fields
FORM_FIELDS = {
"title": "Titel des Projekts",
"description": "Beschreibung",
"requirements": "Anforderungen",
"constraints": "Einschränkungen",
"additional_info": "Weitere Informationen",
}