Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 524 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 524 Bytes

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