This is an automated email from the ASF dual-hosted git repository. shengkai pushed a commit to branch release-2.2 in repository https://gitbox.apache.org/repos/asf/flink.git
commit 3f79fac6080a77356d3f7c9e705e83955978da7e Author: Hao Li <[email protected]> AuthorDate: Tue Dec 2 18:27:45 2025 -0800 [FLINK-38084][doc] Add download doc for model providers (#27296) --- .../content.zh/docs/connectors/models/downloads.md | 41 +++++++++++++ docs/content/docs/connectors/models/downloads.md | 42 ++++++++++++++ docs/data/sql_models.yml | 22 +++++++ docs/layouts/shortcodes/sql_optional_models.html | 67 ++++++++++++++++++++++ 4 files changed, 172 insertions(+) diff --git a/docs/content.zh/docs/connectors/models/downloads.md b/docs/content.zh/docs/connectors/models/downloads.md new file mode 100644 index 00000000000..0eb85a304aa --- /dev/null +++ b/docs/content.zh/docs/connectors/models/downloads.md @@ -0,0 +1,41 @@ +--- +title: 下载页面 +weight: 100 +type: docs +bookToc: false +aliases: + - /zh/dev/table/connectors/downloads.html +--- +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +# SQL Models 下载页面 + +{{< unstable >}} +{{< hint info >}} +Download links are available only for stable releases. +{{< /hint >}} +{{< /unstable >}} + +The page contains links to optional sql-client models that are not part of the binary distribution. + +# 可选的 SQL Models +------------------- + +{{< sql_optional_models >}} diff --git a/docs/content/docs/connectors/models/downloads.md b/docs/content/docs/connectors/models/downloads.md new file mode 100644 index 00000000000..6b5119f333a --- /dev/null +++ b/docs/content/docs/connectors/models/downloads.md @@ -0,0 +1,42 @@ +--- +title: Download +weight: 100 +type: docs +bookToc: false +aliases: + - /dev/table/models/downloads.html +--- +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +# SQL Models download page + +{{< unstable >}} +{{< hint info >}} +Download links are available only for stable releases. +{{< /hint >}} +{{< /unstable >}} + +The page contains links to optional SQL Client models that are not part of the binary distribution. + +# Optional SQL models +------------------- + +{{< sql_optional_models >}} + diff --git a/docs/data/sql_models.yml b/docs/data/sql_models.yml new file mode 100644 index 00000000000..74cd32b1e87 --- /dev/null +++ b/docs/data/sql_models.yml @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License + +openai: + name: OpenAI + category: model + maven: flink-model-openai + sql_url: https://repo.maven.apache.org/maven2/org/apache/flink/flink-model-openai/$version/flink-model-openai-$version.jar diff --git a/docs/layouts/shortcodes/sql_optional_models.html b/docs/layouts/shortcodes/sql_optional_models.html new file mode 100644 index 00000000000..ad93dbc9814 --- /dev/null +++ b/docs/layouts/shortcodes/sql_optional_models.html @@ -0,0 +1,67 @@ +{{/* +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +*/}}{{/* + Generates the SQL download model table. +*/}} + +<table class="table table-bordered"> + <thead> + <tr> + <th style="text-align: left">Name</th> + <th style="text-align: left">Version</th> + <th style="text-align: left">Download Link</th> + </tr> + </thead> + <tbody> + {{ range .Site.Data.sql_models }} + {{ if eq .category "model" }}{{ if eq .builtin nil }} + {{ if eq .versions nil }} + <tr> + <td style="text-align: left">{{- .name -}}</td> + <td></td> + <td style="text-align: left"> + {{ if $.Site.Params.IsStable }} + <a href="{{- partial "docs/interpolate" .sql_url -}}">Download</a> + (<a href="{{- partial "docs/interpolate" .sql_url -}}.asc">asc</a>, + <a href="{{- partial "docs/interpolate" .sql_url -}}.sha1">sha1</a>) </td> + {{ else }} + Only available for stable versions.</td> + {{ end }} + </tr> + {{ else }} + {{ $name := .name }} + {{ range .versions }} + <tr> + <td style="text-align: left">{{- $name -}}</td> + <td>{{- .version -}}</td> + <td style="text-align: left"> + {{ if $.Site.Params.IsStable }} + <a href="{{- partial "docs/interpolate" .sql_url -}}">Download</a> + (<a href="{{- partial "docs/interpolate" .sql_url -}}.asc">asc</a>, + <a href="{{- partial "docs/interpolate" .sql_url -}}.sha1">sha1</a>) </td> + {{ else }} + Only available for stable versions.</td> + {{ end }} + </tr> + {{ end }} + {{ end }} + {{ end }}{{ end }} + {{ end }} + </tbody> +</table> +
