Closed Aisuko closed 1 month ago
We added a new optional filed named collection_name for supporting RAG at chat API. it will cause issue at v0.1.6.
collection_name
v0.1.6
INFO: 172.18.0.10:42048 - "POST /api/chat HTTP/1.0" 422 Unprocessable Entity
Please help me fit the API.
sessionUuid: Optional[str] | None Session UUID message: str Message temperature: float Temperature for inference(float) top_k: int Top_k parameter for inference(int) top_p: float Top_p parameter for inference(float) n_predict: int n_predict parameter for inference(int) collection_name: str collection name curl -X 'POST' 'http://localhost:8000/api/chat' -H 'accept: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFub255bW91cyIsImVtYWlsIjoiYW5vbnltb3VzQGFub255LmNvbSIsImV4cCI6MTcyMTA3MTI0MCwic3ViIjoiWU9VUi1KV1QtU1VCSkVDVCJ9.hip3zPA2yN-MOwKHFOm_KhZuvaC4soY4MgwegyYJu2s' -H 'Content-Type: application/json' -d '{ "sessionUuid": "string", "message": "do you know RMIT?", "temperature": 0.2, "topK": 40, "topP": 0.9, "nPredict": 512, "collection_name": aisuko/test }'
fixed by #49
We added a new optional filed named
collection_name
for supporting RAG at chat API. it will cause issue atv0.1.6
.Please help me fit the API.