Skip to content

Conversation

@priankakariat
Copy link
Contributor

  1. Added Go Server
  2. Updated README to include instructions for Go server

}

// part is a piece of model content. It can hold only text pieces. Each item in the `Parts` of a
// JSON-encoded content in a history array must comply to it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this, but it seems important: "Each item in the Parts of a
// JSON-encoded content in a history array must comply to it." Can you maybe clarify or rephrase?

// - chat: string
// - history: []
//
// Returns a JSON payload containing the model response with the following format.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not actually returning anything, right? It's writing the response to http.ResponseWriter. Consider clarifying the comment.

@pcoet pcoet merged commit bfd6e76 into google-gemini:main Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants