Comments (17)
@calebgcc should be here:
https://github.com/pieroit/cheshire-cat/blob/main/frontend/src/services/rabbitHole.ts#L28
from core.
@calebgcc and here:
https://github.com/pieroit/cheshire-cat/blob/main/frontend/src/components/MessageInput/MessageInput.tsx#L115
from core.
@calebgcc just tested and .md works fine; I guess you are asking MIME type on the temp binary file?
from core.
@calebgcc I'll check on it
from core.
@calebgcc can confirm file.content_type == "text/markdown"
I'm on ubuntu
from core.
Yeah, we need to change the accept="text/plain, application/pdf"
attribute to the Input field, is as easy as that...
I'm happy to address it unless @calebgcc you want to do it :)
from core.
I'm happy to address it unless @calebgcc you want to do it :)
@antinioru I can work on it on Friday, so if you can solve it before it's all your 😬
from core.
I inserted text/markdown
as accepted MIME type in the frontend (backend already supports it).
I don't know if it is a linux only problem, but the .md files are not visible:
Unless I change the lower-right select to "All files". The upload goes smoothly after that.
If this is a linux only issue, we can close it
from core.
I'm doing some experiments, it's really odd how it behaves 😅.
With the new commit still .md files are not default uploadable, I have to change from "custom files" to "all files" exactly like @pieroit to select markdown files.
The problem then is with the backend, I added a log to upload.py to print the content_type of the uploaded file:
I'm exploring some solutions, let you all know
from core.
@calebgcc does it then upload the file anyway? Or does it break?
When I tested it was fine (this kind of test upload should be also in the test suite)
.
.
(when there will be a test suite XD)
from core.
@pieroit It breaks because application/octet-stream is not in the list of permitted content_types
It returns a response with status code 422
from core.
from core.
@pieroit Yes that could be a solution, tomorrow morning I'll test it
from core.
@pieroit it's strange I made several tries this morning and it didn't work :(
Every time I was getting the same error (is the one that you see in the screenshot above)
I'll test it again in the evening and I'll let you know
from core.
@pieroit Yep, the same problem.
I'm sure that for you the mime type is different, this is the only way this can work for you because the check is really strict, it allows only "text/plain" "text/markdown" and "application/pdf"
When you do the upload the mime type logged in the console is "text/markdown"?
Could be a mac os problem (?)
from core.
That's really strange, I'll investigate on that tomorrow
from core.
PR #114 solved this issue.
from core.
Related Issues (20)
- Manage plugin upgrade HOT 5
- [Feature] Add hooks used in "why" response
- [BUG] UNSUPPORTED MEDIA TYPE for EmbedderOpenAICompatibleConfig HOT 3
- The cat is ignoring me HOT 11
- ENV variable for Qdrant endpoint doesn't seem to work HOT 11
- [Feature] add a new hook before that the document is parsed HOT 6
- Allow all endpoints to have or not final slash `/`
- [BUG] querying after uploading multiple large text files results in error '>=' not supported between instances of 'ValueError' and 'int' HOT 6
- [BUG] "Completions.create() got an unexpected keyword argument 'repeat_penalty'" (related to openai-python v1?) HOT 6
- [Feature]Docstring in the tools more clear HOT 2
- 1.4.5/1.5.1 problems using Azure OAI HOT 32
- Refactoring Azure integration HOT 1
- Error executing Chesire Cat with local llm and qdrant HOT 3
- [BUG] - core v1.5.1 traceback when connecting to remote qdrant of version v1.8.x HOT 2
- [BUG] upload memories HOT 1
- [Feature]Could the chat API support the OpenAI Chat Completion API standard to be compatible with a chat web app? HOT 4
- Cat is an agent ,support openai assistant API standard HOT 1
- [Feature] Add GET method to retrieve working memory information for the why HOT 3
- [Refactor] Refactory of OpenAICompatible LLM setting
- Update unstructured dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.