Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
智谱现在推荐使用V4版本的API,其格式与OPENAI的格式已经基本一致了。(某些细微处稍有差别),V4版本的API支持联网功能和函数调用,联网是默认开启。由于其相比V3API变化太大,所以我将其视为一个新的渠道。仅添加了对glm-4、glm-3-turbo的支持,glm-4v还没弄。
本PR还涉及对openai/model.go部分改动,主要是添加了一些字段。
由于环境搭建问题,我并没有测试,但感觉问题不大。作者有时间可以测试一下再合并。