1 Star 0 Fork 0

ledao/go-openai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
examples
internal
test
error_accumulator.go
error_accumulator_test.go
form_builder.go
form_builder_test.go
marshaller.go
request_builder.go
request_builder_test.go
unmarshaler.go
jsonschema
.gitignore
.golangci.yml
CONTRIBUTING.md
LICENSE
README.md
api_integration_test.go
api_internal_test.go
assistant.go
assistant_test.go
audio.go
audio_api_test.go
audio_test.go
batch.go
batch_test.go
chat.go
chat_stream.go
chat_stream_test.go
chat_test.go
client.go
client_test.go
common.go
completion.go
completion_test.go
config.go
config_test.go
edits.go
edits_test.go
embeddings.go
embeddings_test.go
engines.go
engines_test.go
error.go
error_test.go
example_test.go
files.go
files_api_test.go
files_test.go
fine_tunes.go
fine_tunes_test.go
fine_tuning_job.go
fine_tuning_job_test.go
go.mod
image.go
image_api_test.go
image_test.go
messages.go
messages_test.go
models.go
models_test.go
moderation.go
moderation_test.go
openai_test.go
ratelimit.go
run.go
run_test.go
speech.go
speech_test.go
stream.go
stream_reader.go
stream_reader_test.go
stream_test.go
test.mp3
thread.go
thread_test.go
vector_store.go
vector_store_test.go
克隆/下载
marshaller.go 235 Bytes
一键复制 编辑 原始数据 按行查看 历史
package openai
import (
"encoding/json"
)
type Marshaller interface {
Marshal(value any) ([]byte, error)
}
type JSONMarshaller struct{}
func (jm *JSONMarshaller) Marshal(value any) ([]byte, error) {
return json.Marshal(value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ledao/go-openai.git
git@gitee.com:ledao/go-openai.git
ledao
go-openai
go-openai
v1.0.6

搜索帮助