Update README.md
Browse files
README.md
CHANGED
@@ -46,22 +46,23 @@ Eren Bot is an AI chatbot built using FastAPI and Hugging Face's transformers li
|
|
46 |
|
47 |
3.
|
48 |
- `/start_chat/`: Start a new chat thread by providing a prompt and a persona description prompt i.e
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
- `/start_conversation/`: Start a new conversation thread by providing a prompt.
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
61 |
|
62 |
- `/get_response/{thread_id}`: Retrieve the response from an existing conversation thread using its thread ID.
|
63 |
|
64 |
-
|
65 |
|
66 |
|
67 |
## Example
|
|
|
46 |
|
47 |
3.
|
48 |
- `/start_chat/`: Start a new chat thread by providing a prompt and a persona description prompt i.e
|
49 |
+
```json
|
50 |
+
{"prompt":"what food would you recommend",
|
51 |
+
"persona_prompt":"you are a very helpful ai assistant. you are going to be polite and answer a humanily."
|
52 |
+
}
|
53 |
+
```
|
54 |
+
- `This method returns {'thread_id': thread_id, 'response': response}
|
55 |
|
56 |
- `/start_conversation/`: Start a new conversation thread by providing a prompt.
|
57 |
+
```json
|
58 |
+
{"prompt":"what is the time"
|
59 |
+
}
|
60 |
+
```
|
61 |
+
- `After the request is done, this function returns {'response': response}
|
62 |
|
63 |
- `/get_response/{thread_id}`: Retrieve the response from an existing conversation thread using its thread ID.
|
64 |
|
65 |
+
- `Returns the specific thread id of the conversation
|
66 |
|
67 |
|
68 |
## Example
|