Skip to content

pkusunjy/openai-server-proto

Repository files navigation

openai-server-proto

1. Install dependencies required by grpc-gateway.

2. Generate gRPC stubs

protoc -I . \
    --go_out ./ --go_opt paths=source_relative \
    --go-grpc_out ./ --go-grpc_opt paths=source_relative \
    chat_completion/chat_completion.proto

3. Generate reverse-proxy using protoc-gen-grpc-gateway

protoc -I . --grpc-gateway_out ./ \
    --grpc-gateway_opt paths=source_relative \
    --grpc-gateway_opt generate_unbound_methods=true \
    chat_completion/chat_completion.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published