-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate auth interface from ai backend to gateway
- Loading branch information
sunjiayu
committed
Jun 23, 2024
1 parent
5af1c4f
commit 18e3523
Showing
10 changed files
with
0 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1 @@ | ||
# openai-grpc-server | ||
|
||
## 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 \ | ||
proto/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 \ | ||
proto/chat_completion/chat_completion.proto | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
openai_api_key: OPENAI_API_KEY | ||
wx_appid: TOKEN_WX_APPID | ||
wx_secret: TOKEN_WX_SECRET | ||
oss_endpoint: OSS_ACCESS_ENDPOINT | ||
oss_access_key_id: OSS_ACCESS_KEY_ID | ||
oss_access_key_secret: OSS_ACCESS_KEY_SECRET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.