|
3 | 3 | "info": { |
4 | 4 | "title": "Tabby Server", |
5 | 5 | "description": "\n[](https://github.com/TabbyML/tabby)\n[](https://links.tabbyml.com/join-slack)\n\nInstall following IDE / Editor extensions to get started with [Tabby](https://github.com/TabbyML/tabby).\n* [VSCode Extension](https://github.com/TabbyML/tabby/tree/main/clients/vscode) – Install from the [marketplace](https://marketplace.visualstudio.com/items?itemName=TabbyML.vscode-tabby), or [open-vsx.org](https://open-vsx.org/extension/TabbyML/vscode-tabby)\n* [VIM Extension](https://github.com/TabbyML/tabby/tree/main/clients/vim)\n* [IntelliJ Platform Plugin](https://github.com/TabbyML/tabby/tree/main/clients/intellij) – Install from the [marketplace](https://plugins.jetbrains.com/plugin/22379-tabby)\n", |
| 6 | + "contact": { "name": "TabbyML Team" }, |
6 | 7 | "license": { "name": "Apache 2.0", "url": "https://github.com/TabbyML/tabby/blob/main/LICENSE" }, |
7 | 8 | "version": "0.10.0-dev.0" |
8 | 9 | }, |
|
80 | 81 | "name": "limit", |
81 | 82 | "in": "query", |
82 | 83 | "required": false, |
83 | | - "schema": { "type": "integer", "default": 20, "nullable": true, "minimum": 0.0 } |
| 84 | + "schema": { "type": "integer", "default": 20, "nullable": true, "minimum": 0 } |
84 | 85 | }, |
85 | 86 | { |
86 | 87 | "name": "offset", |
87 | 88 | "in": "query", |
88 | 89 | "required": false, |
89 | | - "schema": { "type": "integer", "default": 0, "nullable": true, "minimum": 0.0 } |
| 90 | + "schema": { "type": "integer", "default": 0, "nullable": true, "minimum": 0 } |
90 | 91 | } |
91 | 92 | ], |
92 | 93 | "responses": { |
|
119 | 120 | "type": "object", |
120 | 121 | "required": ["index", "delta"], |
121 | 122 | "properties": { |
122 | | - "index": { "type": "integer", "minimum": 0.0 }, |
| 123 | + "index": { "type": "integer", "minimum": 0 }, |
123 | 124 | "logprobs": { "type": "string", "nullable": true }, |
124 | 125 | "finish_reason": { "type": "string", "nullable": true }, |
125 | 126 | "delta": { "$ref": "#/components/schemas/ChatCompletionDelta" } |
|
130 | 131 | "required": ["id", "created", "system_fingerprint", "object", "model", "choices"], |
131 | 132 | "properties": { |
132 | 133 | "id": { "type": "string" }, |
133 | | - "created": { "type": "integer", "format": "int64", "minimum": 0.0 }, |
| 134 | + "created": { "type": "integer", "format": "int64", "minimum": 0 }, |
134 | 135 | "system_fingerprint": { "type": "string" }, |
135 | 136 | "object": { "type": "string" }, |
136 | 137 | "model": { "type": "string" }, |
|
148 | 149 | "properties": { |
149 | 150 | "messages": { "type": "array", "items": { "$ref": "#/components/schemas/Message" } }, |
150 | 151 | "temperature": { "type": "number", "format": "float", "nullable": true }, |
151 | | - "seed": { "type": "integer", "format": "int64", "nullable": true, "minimum": 0.0 } |
| 152 | + "seed": { "type": "integer", "format": "int64", "nullable": true, "minimum": 0 } |
152 | 153 | }, |
153 | 154 | "example": { |
154 | 155 | "messages": [ |
|
161 | 162 | "Choice": { |
162 | 163 | "type": "object", |
163 | 164 | "required": ["index", "text"], |
164 | | - "properties": { |
165 | | - "index": { "type": "integer", "format": "int32", "minimum": 0.0 }, |
166 | | - "text": { "type": "string" } |
167 | | - } |
| 165 | + "properties": { "index": { "type": "integer", "format": "int32", "minimum": 0 }, "text": { "type": "string" } } |
168 | 166 | }, |
169 | 167 | "CompletionRequest": { |
170 | 168 | "type": "object", |
|
193 | 191 | "format": "int64", |
194 | 192 | "description": "The seed used for randomly selecting tokens", |
195 | 193 | "nullable": true, |
196 | | - "minimum": 0.0 |
| 194 | + "minimum": 0 |
197 | 195 | } |
198 | 196 | }, |
199 | 197 | "example": { |
|
241 | 239 | "properties": { |
242 | 240 | "filepath": { |
243 | 241 | "type": "string", |
244 | | - "description": "Filepath of the file where the snippet is from.\n- When the file belongs to the same workspace as the current file,\nthis is a relative filepath, that has the same root as the current file.\n- When the file located outside the workspace, such as in a dependency package,\nthis is a file URI with an absolute filepath." |
| 242 | + "description": "Filepath of the file where the snippet is from.\n- When the file belongs to the same workspace as the current file,\nthis is a relative filepath, use the same rule as [Segments::filepath].\n- When the file located outside the workspace, such as in a dependency package,\nthis is a file URI with an absolute filepath." |
245 | 243 | }, |
246 | 244 | "body": { "type": "string", "description": "Body of the snippet." } |
247 | 245 | } |
|
255 | 253 | "device": { "type": "string" }, |
256 | 254 | "arch": { "type": "string" }, |
257 | 255 | "cpu_info": { "type": "string" }, |
258 | | - "cpu_count": { "type": "integer", "minimum": 0.0 }, |
| 256 | + "cpu_count": { "type": "integer", "minimum": 0 }, |
259 | 257 | "cuda_devices": { "type": "array", "items": { "type": "string" } }, |
260 | 258 | "version": { "$ref": "#/components/schemas/Version" } |
261 | 259 | } |
|
266 | 264 | "properties": { |
267 | 265 | "score": { "type": "number", "format": "float" }, |
268 | 266 | "doc": { "$ref": "#/components/schemas/HitDocument" }, |
269 | | - "id": { "type": "integer", "format": "int32", "minimum": 0.0 } |
| 267 | + "id": { "type": "integer", "format": "int32", "minimum": 0 } |
270 | 268 | } |
271 | 269 | }, |
272 | 270 | "HitDocument": { |
|
291 | 289 | "example": "view" |
292 | 290 | }, |
293 | 291 | "completion_id": { "type": "string" }, |
294 | | - "choice_index": { "type": "integer", "format": "int32", "minimum": 0.0 }, |
| 292 | + "choice_index": { "type": "integer", "format": "int32", "minimum": 0 }, |
295 | 293 | "view_id": { "type": "string", "nullable": true }, |
296 | | - "elapsed": { "type": "integer", "format": "int32", "nullable": true, "minimum": 0.0 } |
| 294 | + "elapsed": { "type": "integer", "format": "int32", "nullable": true, "minimum": 0 } |
297 | 295 | } |
298 | 296 | }, |
299 | 297 | "Message": { |
|
305 | 303 | "type": "object", |
306 | 304 | "required": ["num_hits", "hits"], |
307 | 305 | "properties": { |
308 | | - "num_hits": { "type": "integer", "minimum": 0.0 }, |
| 306 | + "num_hits": { "type": "integer", "minimum": 0 }, |
309 | 307 | "hits": { "type": "array", "items": { "$ref": "#/components/schemas/Hit" } } |
310 | 308 | } |
311 | 309 | }, |
|
321 | 319 | }, |
322 | 320 | "filepath": { |
323 | 321 | "type": "string", |
324 | | - "description": "The relative path of the file that is being edited.\n- When `git_url` is set, this is the path of the file in the git repository.\n- When `git_url` is empty, this is the path of the file in the workspace.", |
| 322 | + "description": "The relative path of the file that is being edited.\n- When [Segments::git_url] is set, this is the path of the file in the git repository.\n- When [Segments::git_url] is empty, this is the path of the file in the workspace.", |
325 | 323 | "nullable": true |
326 | 324 | }, |
327 | 325 | "git_url": { |
|
332 | 330 | "declarations": { |
333 | 331 | "type": "array", |
334 | 332 | "items": { "$ref": "#/components/schemas/Declaration" }, |
335 | | - "description": "The relevant declaration code snippets provided by editor.\nIt'll contains declarations extracted from `prefix` segments using LSP.", |
| 333 | + "description": "The relevant declaration code snippets provided by the editor's LSP,\ncontain declarations of symbols extracted from [Segments::prefix].", |
| 334 | + "nullable": true |
| 335 | + }, |
| 336 | + "relevant_snippets_from_changed_files": { |
| 337 | + "type": "array", |
| 338 | + "items": { "$ref": "#/components/schemas/Snippet" }, |
| 339 | + "description": "The relevant code snippets extracted from recently edited files.\nThese snippets are selected from candidates found within code chunks\nbased on the edited location.\nThe current editing file is excluded from the search candidates.\n\nWhen provided alongside [Segments::declarations], the snippets have\nalready been deduplicated to ensure no duplication with entries\nin [Segments::declarations].\n\nSorted in descending order of [Snippet::score].", |
336 | 340 | "nullable": true |
337 | 341 | }, |
338 | 342 | "clipboard": { |
|
0 commit comments