Skip to content

Commit

Permalink
fix: minor typos for simple-genai-server (#3673)
Browse files Browse the repository at this point in the history
  • Loading branch information
indexjoseph authored Feb 28, 2024
1 parent 76548a2 commit 929a3e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/simple-genai-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ include the context with each chat (post request) that you make to the GenAI end

If you want to have two clients "chat" to each other, modify the
[gameserver_autochat.yaml](gameserver_autochat.yaml) `GenAiEndpoint` value to your inference
server's endpoint. Also modift the `SimEndpoint` value to your inference server's endpoint.
server's endpoint. Also modify the `SimEndpoint` value to your inference server's endpoint.
Alternatively you can create a basic http server that accepts requests in the structure noted in the
above section, and returns a predetermined set of responses for the chat. The `GenAiContext` is sent
to the `GenAiEndpoint` with each request, and the `SimContext` is sent to the `SimEndpoint` with
Expand Down
4 changes: 2 additions & 2 deletions examples/simple-genai-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func main() {
sigCtx, _ := signals.NewSigKillContext()

port := flag.String("port", "7654", "The port to listen to traffic on")
genAiEndpoint := flag.String("GenAiEndpoint", "", "The full base URL to send API requests to to simulate computer (NPC) responses to user input")
genAiEndpoint := flag.String("GenAiEndpoint", "", "The full base URL to send API requests to simulate computer (NPC) responses to user input")
genAiContext := flag.String("GenAiContext", "", "Context for the GenAI endpoint")
prompt := flag.String("Prompt", "", "The first prompt for the GenAI endpoint")
simEndpoint := flag.String("SimEndpoint", "", "The full base URL to send API requests to to simulate user input")
simEndpoint := flag.String("SimEndpoint", "", "The full base URL to send API requests to simulate user input")
simContext := flag.String("SimContext", "", "Context for the Sim endpoint")
numChats := flag.Int("NumChats", 1, "Number of back and forth chats between the sim and genAI")

Expand Down

0 comments on commit 929a3e7

Please sign in to comment.