SmartDataAlex commited on
Commit
fdb03af
·
verified ·
1 Parent(s): 254c051

Deploy vectorization service from GitHub 9f41798640662fbd2c65db297ac5a4a389906725

Browse files
Files changed (3) hide show
  1. README.md +2 -0
  2. VERSION +1 -1
  3. app/openai_api.py +3 -0
README.md CHANGED
@@ -58,6 +58,8 @@ to the base URL ending in `/openai/v1`, not to the Voyage `/v1` URL.
58
 
59
  - `POST /openai/v1/embeddings`: accepts `model`, `input` (string or string array),
60
  optional `dimensions`, `encoding_format` (`float` or `base64`) and `user`.
 
 
61
  Responds in the OpenAI `data[].embedding` / `usage.prompt_tokens` /
62
  `usage.total_tokens` format. Only fixed native dimensions are supported.
63
  - `GET /openai/v1/models`: dense model aliases for provider selection.
 
58
 
59
  - `POST /openai/v1/embeddings`: accepts `model`, `input` (string or string array),
60
  optional `dimensions`, `encoding_format` (`float` or `base64`) and `user`.
61
+ Also accepts and ignores the non-standard boolean `drop_params` sent by
62
+ some OpenAI-compatible connection checks; other unknown fields remain errors.
63
  Responds in the OpenAI `data[].embedding` / `usage.prompt_tokens` /
64
  `usage.total_tokens` format. Only fixed native dimensions are supported.
65
  - `GET /openai/v1/models`: dense model aliases for provider selection.
VERSION CHANGED
@@ -1 +1 @@
1
- 689c11787483ba0192ed8460430e2eff6cb8e40f
 
1
+ 9f41798640662fbd2c65db297ac5a4a389906725
app/openai_api.py CHANGED
@@ -34,6 +34,9 @@ class OpenAIEmbeddingRequest(BaseModel):
34
  dimensions: int | None = Field(default=None, ge=1)
35
  encoding_format: Literal["float", "base64"] = "float"
36
  user: str | None = None
 
 
 
37
 
38
  @field_validator("input")
39
  @classmethod
 
34
  dimensions: int | None = Field(default=None, ge=1)
35
  encoding_format: Literal["float", "base64"] = "float"
36
  user: str | None = None
37
+ # Non-standard client probe flag (e.g. OpenAI-compatible integrations).
38
+ # It does not change server-side processing; accept it for compatibility.
39
+ drop_params: bool | None = None
40
 
41
  @field_validator("input")
42
  @classmethod