From 7a0bbe6a64ee61f0bd22811a3b72bc7418e15c17 Mon Sep 17 00:00:00 2001 From: linzhuo <15313137931lz@gmail.com> Date: Tue, 27 May 2025 13:05:11 +0800 Subject: [PATCH] update toc for doc and dockerfile code style format (#6450) Co-authored-by: Chayenne --- .devcontainer/Dockerfile | 2 +- docs/backend/function_calling.ipynb | 26 ++----------------- docs/index.rst | 1 + docs/references/developer.rst | 8 ++++++ .../development_guide_using_docker.md | 0 .../release_process.md | 0 .../setup_github_runner.md | 0 7 files changed, 12 insertions(+), 25 deletions(-) create mode 100644 docs/references/developer.rst rename docs/{developer => references}/development_guide_using_docker.md (100%) rename docs/{developer => references}/release_process.md (100%) rename docs/{developer => references}/setup_github_runner.md (100%) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0c061cd18..3c7b67cac 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -From lmsysorg/sglang:dev +FROM lmsysorg/sglang:dev # Create non-root user with specified UID and GID # NOTE: Replace with your own UID and GID. This is a workaround from https://github.com/microsoft/vscode-remote-release/issues/49#issuecomment-489060908. diff --git a/docs/backend/function_calling.ipynb b/docs/backend/function_calling.ipynb index 25d7e6273..a21ea442a 100644 --- a/docs/backend/function_calling.ipynb +++ b/docs/backend/function_calling.ipynb @@ -386,17 +386,7 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Response with tool_choice='required':\n", - "Content: None\n", - "Tool calls: [ChatCompletionMessageToolCall(id='call_NFO3TSZuRRO8Eu3Cv79uiQ', function=Function(arguments='{\"city\": \"Paris\", \"unit\": \"celsius\"}', name='get_current_weather'), type='function', index=0)]\n" - ] - } - ], + "outputs": [], "source": [ "from openai import OpenAI\n", "import json\n", @@ -479,19 +469,7 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Response with specific function choice:\n", - "Content: None\n", - "Tool calls: [ChatCompletionMessageToolCall(id='call_fGL_1qsPQFqntNBPkSynJw', function=Function(arguments='{\"city\": \"Sophia Antipolis\", \"unit\": \"celsius\"}', name='get_current_weather'), type='function', index=0)]\n", - "Called function: get_current_weather\n", - "Arguments: {\"city\": \"Sophia Antipolis\", \"unit\": \"celsius\"}\n" - ] - } - ], + "outputs": [], "source": [ "# Example with specific function choice - forces the model to call a specific function\n", "messages_specific = [\n", diff --git a/docs/index.rst b/docs/index.rst index 9f736a811..40f3b6655 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -83,3 +83,4 @@ The core features include: references/hardware references/advanced_deploy references/performance_analysis_and_optimization + references/developer diff --git a/docs/references/developer.rst b/docs/references/developer.rst new file mode 100644 index 000000000..0ed74456e --- /dev/null +++ b/docs/references/developer.rst @@ -0,0 +1,8 @@ +Developer Reference +========================== +.. toctree:: + :maxdepth: 1 + + development_guide_using_docker.md + release_process.md + setup_github_runner.md diff --git a/docs/developer/development_guide_using_docker.md b/docs/references/development_guide_using_docker.md similarity index 100% rename from docs/developer/development_guide_using_docker.md rename to docs/references/development_guide_using_docker.md diff --git a/docs/developer/release_process.md b/docs/references/release_process.md similarity index 100% rename from docs/developer/release_process.md rename to docs/references/release_process.md diff --git a/docs/developer/setup_github_runner.md b/docs/references/setup_github_runner.md similarity index 100% rename from docs/developer/setup_github_runner.md rename to docs/references/setup_github_runner.md