[
https://issues.apache.org/jira/browse/FLINK-34992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17943459#comment-17943459
]
Shengkai Fang commented on FLINK-34992:
---------------------------------------
In the example,
```
{{CREATE MODEL `my_remote_model`}}
{{INPUT (f1 INT, f2 STRING)}}
{{OUTPUT (label STRING, probs ARRAY<FLOAT>)}}
{{WITH(}}
{{ }}{{'task'}} {{= }}{{{}'classification'{}}}{{{},{}}}
{{ }}{{'type'}} {{= }}{{{}'remote'{}}}{{{},{}}}
{{ }}{{'provider'}} {{= }}{{{}'openai'{}}}{{{},{}}}
{{ }}{{'openai.endpoint'}} {{=
}}{{{}'[https://api.openai.com/v1/llm/v1/chat']{}}}{{{},{}}}
{{ }}{{'openai.api_key'}} {{= }}{{'abcdefg'}}
{{)}}
```
users should use openai as the parameter prefix. It seems a little verbose. Why
users can not create model like this:
```
{{CREATE MODEL `my_remote_model`}}
{{INPUT (f1 INT, f2 STRING)}}
{{OUTPUT (label STRING, probs ARRAY<FLOAT>)}}
{{WITH(}}
{{ }}{{'task'}} {{= }}{{{}'classification'{}}}{{{},{}}}
{{ }}{{'type'}} {{= }}{{{}'remote'{}}}{{{},{}}}
{{ }}{{'provider'}} {{= }}{{{}'openai'{}}}{{{},{}}}
{{ }}{{'endpoint'}} {{=
}}{{{}'[https://api.openai.com/v1/llm/v1/chat']{}}}{{{},{}}}
{{ }}{{'api_key'}} {{= }}{{'abcdefg'}}
{{)}}
```
> FLIP-437: Support ML Models in Flink SQL
> ----------------------------------------
>
> Key: FLINK-34992
> URL: https://issues.apache.org/jira/browse/FLINK-34992
> Project: Flink
> Issue Type: New Feature
> Components: Table SQL / API, Table SQL / Planner, Table SQL / Runtime
> Reporter: Hao Li
> Priority: Major
>
> This is an umbrella task for FLIP-437. FLIP-437:
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-437%3A+Support+ML+Models+in+Flink+SQL
--
This message was sent by Atlassian Jira
(v8.20.10#820010)