kyuubi/externals
liangbowen 067c6010a6
[KYUUBI #4554] [CHAT] Code improvement in ChatGPTProvider
### _Why are the changes needed?_

- set authentication as default header in client construction instead of  request construction
- handle response's status code in scala style
- transforming config's long value to int with `.intValue` instead of `asInstanceOf` casting
- fix var name to `response`

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4554 from bowenliang123/chatgpt-http.

Closes #4554

114484a4d [liangbowen] httpclient improvement in ChatGPTProvider

Authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2023-03-18 15:34:16 +08:00
..
kyuubi-chat-engine [KYUUBI #4554] [CHAT] Code improvement in ChatGPTProvider 2023-03-18 15:34:16 +08:00
kyuubi-download [KYUUBI #4348] [INFRA] Cache engine archives in CI jobs for maven download plugin 2023-02-18 22:34:02 +08:00
kyuubi-flink-sql-engine [KYUUBI #4446] Fix connections blocked by Flink insert statements 2023-03-09 13:41:31 +08:00
kyuubi-hive-sql-engine [KYUUBI #4412][FOLLOWUP] Align the server/engine session handle for flink/hive/trino/jdbc engines 2023-02-27 20:57:19 +08:00
kyuubi-jdbc-engine [KYUUBI #4412][FOLLOWUP] Align the server/engine session handle for flink/hive/trino/jdbc engines 2023-02-27 20:57:19 +08:00
kyuubi-spark-sql-engine [KYUUBI #3420][SPARK] Expose UI url on registering engine service 2023-03-16 22:11:11 +08:00
kyuubi-trino-engine [KYUUBI #4412][FOLLOWUP] Align the server/engine session handle for flink/hive/trino/jdbc engines 2023-02-27 20:57:19 +08:00