Skip to content

Commit e46a212

Browse files
authored
[FLINK-38084][doc] Add download doc for model providers (#27296)
1 parent d0ab038 commit e46a212

File tree

4 files changed

+172
-0
lines changed

4 files changed

+172
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: 下载页面
3+
weight: 100
4+
type: docs
5+
bookToc: false
6+
aliases:
7+
- /zh/dev/table/connectors/downloads.html
8+
---
9+
<!--
10+
Licensed to the Apache Software Foundation (ASF) under one
11+
or more contributor license agreements. See the NOTICE file
12+
distributed with this work for additional information
13+
regarding copyright ownership. The ASF licenses this file
14+
to you under the Apache License, Version 2.0 (the
15+
"License"); you may not use this file except in compliance
16+
with the License. You may obtain a copy of the License at
17+
18+
http://www.apache.org/licenses/LICENSE-2.0
19+
20+
Unless required by applicable law or agreed to in writing,
21+
software distributed under the License is distributed on an
22+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
KIND, either express or implied. See the License for the
24+
specific language governing permissions and limitations
25+
under the License.
26+
-->
27+
28+
# SQL Models 下载页面
29+
30+
{{< unstable >}}
31+
{{< hint info >}}
32+
Download links are available only for stable releases.
33+
{{< /hint >}}
34+
{{< /unstable >}}
35+
36+
The page contains links to optional sql-client models that are not part of the binary distribution.
37+
38+
# 可选的 SQL Models
39+
-------------------
40+
41+
{{< sql_optional_models >}}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Download
3+
weight: 100
4+
type: docs
5+
bookToc: false
6+
aliases:
7+
- /dev/table/models/downloads.html
8+
---
9+
<!--
10+
Licensed to the Apache Software Foundation (ASF) under one
11+
or more contributor license agreements. See the NOTICE file
12+
distributed with this work for additional information
13+
regarding copyright ownership. The ASF licenses this file
14+
to you under the Apache License, Version 2.0 (the
15+
"License"); you may not use this file except in compliance
16+
with the License. You may obtain a copy of the License at
17+
18+
http://www.apache.org/licenses/LICENSE-2.0
19+
20+
Unless required by applicable law or agreed to in writing,
21+
software distributed under the License is distributed on an
22+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
KIND, either express or implied. See the License for the
24+
specific language governing permissions and limitations
25+
under the License.
26+
-->
27+
28+
# SQL Models download page
29+
30+
{{< unstable >}}
31+
{{< hint info >}}
32+
Download links are available only for stable releases.
33+
{{< /hint >}}
34+
{{< /unstable >}}
35+
36+
The page contains links to optional SQL Client models that are not part of the binary distribution.
37+
38+
# Optional SQL models
39+
-------------------
40+
41+
{{< sql_optional_models >}}
42+

docs/data/sql_models.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License
17+
18+
openai:
19+
name: OpenAI
20+
category: model
21+
maven: flink-model-openai
22+
sql_url: https://repo.maven.apache.org/maven2/org/apache/flink/flink-model-openai/$version/flink-model-openai-$version.jar
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{{/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/}}{{/*
19+
Generates the SQL download model table.
20+
*/}}
21+
22+
<table class="table table-bordered">
23+
<thead>
24+
<tr>
25+
<th style="text-align: left">Name</th>
26+
<th style="text-align: left">Version</th>
27+
<th style="text-align: left">Download Link</th>
28+
</tr>
29+
</thead>
30+
<tbody>
31+
{{ range .Site.Data.sql_models }}
32+
{{ if eq .category "model" }}{{ if eq .builtin nil }}
33+
{{ if eq .versions nil }}
34+
<tr>
35+
<td style="text-align: left">{{- .name -}}</td>
36+
<td></td>
37+
<td style="text-align: left">
38+
{{ if $.Site.Params.IsStable }}
39+
<a href="{{- partial "docs/interpolate" .sql_url -}}">Download</a>
40+
(<a href="{{- partial "docs/interpolate" .sql_url -}}.asc">asc</a>,
41+
<a href="{{- partial "docs/interpolate" .sql_url -}}.sha1">sha1</a>) </td>
42+
{{ else }}
43+
Only available for stable versions.</td>
44+
{{ end }}
45+
</tr>
46+
{{ else }}
47+
{{ $name := .name }}
48+
{{ range .versions }}
49+
<tr>
50+
<td style="text-align: left">{{- $name -}}</td>
51+
<td>{{- .version -}}</td>
52+
<td style="text-align: left">
53+
{{ if $.Site.Params.IsStable }}
54+
<a href="{{- partial "docs/interpolate" .sql_url -}}">Download</a>
55+
(<a href="{{- partial "docs/interpolate" .sql_url -}}.asc">asc</a>,
56+
<a href="{{- partial "docs/interpolate" .sql_url -}}.sha1">sha1</a>) </td>
57+
{{ else }}
58+
Only available for stable versions.</td>
59+
{{ end }}
60+
</tr>
61+
{{ end }}
62+
{{ end }}
63+
{{ end }}{{ end }}
64+
{{ end }}
65+
</tbody>
66+
</table>
67+

0 commit comments

Comments
 (0)