update .gitignore; fix model version error in api_schemas

This commit is contained in:
liunux4odoo 2024-03-27 10:39:45 +08:00
parent 9260039672
commit 26b141a06e
2 changed files with 7 additions and 7 deletions

12
.gitignore vendored
View File

@ -1,13 +1,13 @@
*.log
*.log.*
*.bak
/chatchat/chatchat/data/*
!/chatchat/chatchat/data/knowledge_base/samples
/chatchat/chatchat/data/knowledge_base/samples/vector_store
!/chatchat/chatchat/data/nltk_data
/chatchat-server/chatchat/data/*
!/chatchat-server/chatchat/data/knowledge_base/samples
/chatchat-server/chatchat/data/knowledge_base/samples/vector_store
!/chatchat-server/chatchat/data/nltk_data
/chatchat/chatchat/configs/*.py
/chatchat/chatchat/configs/loom.yaml
/chatchat-server/chatchat/configs/*.py
/chatchat-server/chatchat/configs/loom.yaml
.vscode/
# below are standard python ignore files

View File

@ -4,7 +4,7 @@ import re
from typing import Dict, List, Literal, Optional, Union
from fastapi import UploadFile
from chatchat.server.pydantic_v1 import BaseModel, Field, AnyUrl, root_validator
from chatchat.server.pydantic_v2 import BaseModel, Field, AnyUrl, root_validator
from openai.types.chat import (
ChatCompletionMessageParam,
ChatCompletionToolChoiceOptionParam,