[GH-ISSUE #8369] type:file_url not supported? #51881

Closed
opened 2026-04-28 21:07:50 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @goactiongo on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8369

Thanks for help, I want to know if "type": "file_url" supported , if not supported how can I handle the file

 messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "file_url",
                    "name": "2222.docx",
                    "file_url": "https://xxx.com:4444/test/2222.docx"
                },
                {
                    "type": "text",
                    "text": "summarize the file "
                }
            ]
        }
  ]

Originally created by @goactiongo on GitHub (Jan 10, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8369 Thanks for help, I want to know if **"type": "file_url"** supported , if not supported how can I handle the file ``` messages=[ { "role": "user", "content": [ { "type": "file_url", "name": "2222.docx", "file_url": "https://xxx.com:4444/test/2222.docx" }, { "type": "text", "text": "summarize the file " } ] } ] ```
GiteaMirror added the feature request label 2026-04-28 21:07:50 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 10, 2025):

file_url is not supported. In order to process the file, you need to add it to the message context as you've previously done here.

<!-- gh-comment-id:2581693242 --> @rick-github commented on GitHub (Jan 10, 2025): `file_url` is not supported. In order to process the file, you need to add it to the message context as you've previously done [here](https://github.com/ollama/ollama/issues/7146).
Author
Owner

@goactiongo commented on GitHub (Jan 10, 2025):

thanks

<!-- gh-comment-id:2581749591 --> @goactiongo commented on GitHub (Jan 10, 2025): thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#51881