quivr/backend
Michael Tan 0888bc5da2
(fix) temporary audio file not removed. (#377)
* (fix) temporary audio file not removed.

In audio.py file:
texts = text_splitter.split_text(transcript)

Threw an exception.
TypeError: expected string or bytes-like object, got 'OpenAIObject'

This causes the temporary file to persist.

Signed-off-by: Michael Tan <tan.michael@mac.com>

* Additionally fix the reason why text splitting threw the exception.

Default response format is JSON.

Signed-off-by: Michael Tan <tan.michael@mac.com>

---------

Signed-off-by: Michael Tan <tan.michael@mac.com>
2023-06-28 09:47:59 +02:00
..
auth Feat/error handling (#366) 2023-06-23 10:36:55 +02:00
crawl Feat: chat name edit (#343) 2023-06-20 09:54:23 +02:00
llm fix(vectorstore): issues with userid (#380) 2023-06-26 19:02:03 +02:00
middlewares Back/refacto files (#240) 2023-06-03 23:12:42 +02:00
models feat(brainpicking): simplified (#371) 2023-06-26 10:34:03 +02:00
parsers (fix) temporary audio file not removed. (#377) 2023-06-28 09:47:59 +02:00
repository/chat Feat/error handling (#366) 2023-06-23 10:36:55 +02:00
routes feat(brainpicking): simplified (#371) 2023-06-26 10:34:03 +02:00
scripts feat: start script (#367) 2023-06-23 14:20:03 +02:00
utils feat(chat): use openai function for answer (#354) 2023-06-22 17:50:06 +02:00
vectorstore fix(vectorstore): removed userid 2023-06-27 11:44:23 +02:00
Dockerfile feat: start script (#367) 2023-06-23 14:20:03 +02:00
logger.py feat(chat): use openai function for answer (#354) 2023-06-22 17:50:06 +02:00
main.py Feat/error handling (#366) 2023-06-23 10:36:55 +02:00
requirements.txt feat(chat): use openai function for answer (#354) 2023-06-22 17:50:06 +02:00