ソースを参照

DRAFT: Miscellaneous updates to HTTP API reference (#2923)

### What problem does this PR solve?


### Type of change


- [x] Documentation Update
tags/v0.13.0
writinwaters 1年前
コミット
1a623df849
コミッターのメールアドレスに関連付けられたアカウントが存在しません

api/http_api_reference.md
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 10
- 5
api/python_api_reference.md ファイルの表示

@@ -415,7 +415,7 @@ A `Document` object contains the following attributes:
- `chunk_method` The chunk method name. Defaults to `""`. ?????naive??????
- `parser_config`: `ParserConfig` Configuration object for the parser. Defaults to `{"pages": [[1, 1000000]]}`.
- `source_type`: The source type of the document. Defaults to `"local"`.
- `type`: Type or category of the document???????????. Defaults to `""`.
- `type`: Type or category of the document. Defaults to `""`. Reserved for future use.
- `created_by`: `str` The creator of the document. Defaults to `""`.
- `size`: `int` The document size in bytes. Defaults to `0`.
- `token_count`: `int` The number of tokens in the document. Defaults to `0`.
@@ -423,9 +423,14 @@ A `Document` object contains the following attributes:
- `progress`: `float` The current processing progress as a percentage. Defaults to `0.0`.
- `progress_msg`: `str` A message indicating the current progress status. Defaults to `""`.
- `process_begin_at`: `datetime` The start time of document processing. Defaults to `None`.
- `process_duation`: `float` Duration of the processing in seconds or minutes.??????? Defaults to `0.0`.
- `run`: `str` ?????????????????? Defaults to `"0"`.
- `status`: `str` ??????????????????? Defaults to `"1"`.
- `process_duation`: `float` Duration of the processing in seconds. Defaults to `0.0`.
- `run`: `str` The document's processing status:
- `"0"`: UNSTART (default)
- `"1"`: RUNNING
- `"2"`: CANCEL
- `"3"`: DONE
- `"4"`: FAIL
- `status`: `str` Reserved for future use.

### Examples

@@ -492,7 +497,7 @@ The IDs of the documents to parse.

### Returns

- Success: No value is returned.????????????????????
- Success: No value is returned.
- Failure: `Exception`

### Examples

+ 2
- 2
web/src/components/api-service/chat-overview-modal/api-content.tsx ファイルの表示

@@ -1,8 +1,8 @@
import HightLightMarkdown from '@/components/highlight-markdown';
import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
import { Button, Card, Flex, Space } from 'antd';
// import apiDoc from '../../../../../api/http_api.md';
import apiDoc from '@parent/api/http_api.md';
// import apiDoc from '../../../../../api/http_api_reference.md';
import apiDoc from '@parent/api/http_api_reference.md';
import ChatApiKeyModal from '../chat-api-key-modal';
import EmbedModal from '../embed-modal';
import { usePreviewChat, useShowEmbedModal } from '../hooks';

読み込み中…
キャンセル
保存