Chat Bot with OpenAI API W projekcie muszązostać skonfigurowane reguły CORS.
cd ChatBot -> cd Frontend -> npm install -> npm run dev -> http://localhost:5173
-> POST
- Handle both text and voice file uploads.If the request contains a text field, it processes the text data.
- Process the uploaded data and return the appropriate response.If the request contains a wavfile field, it saves and processes the audio file.
- Returns data in JSON format e.g {"message" : "This is dummy response"}
Proposed Usage
- curl -X POST -F "text=Hello, this is a test message" http://localhost:5000/upload
- curl -X POST -F "wavfile=@path/to/your/recording.wav" http://localhost:5000/upload
Config
Jak to możliwe to dodać config dla requesta do API Open AI -> żeby response nie był typowym czatem tylko miał focus na język hiszpański i angielski. ( zwracanie uwagi na pisownie, słówka itd...)
