Class: LLM::DeepSeek::Files
- Inherits:
-
OpenAI::Files
- Object
- OpenAI::Files
- LLM::DeepSeek::Files
- Defined in:
- lib/llm/providers/deepseek/files.rb
Overview
The LLM::DeepSeek::Files class provides a files
object for interacting with DeepSeek's Files API.
The files API lets a client upload images and reference them later by
file_id - for example in chat requests to deepseek-flash - without
re-uploading them. DeepSeek supports the JPEG, PNG, GIF, and WebP formats,
and a single file may be at most 64 MiB.
DeepSeek's Files API is OpenAI-compatible, with two differences from
OpenAI's: it is served from the root of the API host (not under /v1),
and the purpose of an upload must be "user_data".
Instance Method Summary collapse
Instance Method Details
#create(file:, purpose: "user_data", **params) ⇒ LLM::Response
Create a file
35 36 37 |
# File 'lib/llm/providers/deepseek/files.rb', line 35 def create(file:, purpose: "user_data", **params) super end |