Skip to content

Commit

Permalink
docs:使用梗概
Browse files Browse the repository at this point in the history
  • Loading branch information
passion2021 committed Jun 19, 2023
0 parents commit 05cbabe
Show file tree
Hide file tree
Showing 113 changed files with 9,979 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/novel_api.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/webServers.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added __init__.py
Empty file.
Binary file added __pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/settings.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/wsgi.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/wsgi.cpython-39.pyc
Binary file not shown.
16 changes: 16 additions & 0 deletions asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
ASGI config for novel_api project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
"""

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'novel_api.settings')

application = get_asgi_application()
Empty file added chatbot/__init__.py
Empty file.
Binary file added chatbot/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/prompt.cpython-310.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file added chatbot/__pycache__/views.cpython-39.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions chatbot/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions chatbot/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class ChatbotConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'chatbot'
Empty file added chatbot/migrations/__init__.py
Empty file.
22 changes: 22 additions & 0 deletions chatbot/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import mongoengine


class Memory(mongoengine.Document):
novel = mongoengine.StringField(max_length=32)
Memory = mongoengine.ListField() # 文章的memory


class Access_token_pool(mongoengine.Document):
access_token = mongoengine.StringField()
now_time = mongoengine.StringField()


class User(mongoengine.Document):
id = mongoengine.StringField(max_length=100)

class Paragraph(mongoengine.Document):
text = mongoengine.ListField()


class Choice(mongoengine.Document):
text = mongoengine.ListField()
Loading

0 comments on commit 05cbabe

Please sign in to comment.