Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(app): add optional parameters #518

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/app/v1alpha/conversation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ message ChatRequest {
string message = 5 [(google.api.field_behavior) = REQUIRED];
// top k, defaults to 5
optional uint32 top_k = 6;
// LLM model name, defaults to `gpt-4o`
optional string llm_model = 7;
// Instruction for the model to follow, defaults to `Please answer user question accurately and in the same language as the Follow-up Question.`
optional string user_instruction = 8;
}

// ChatResponse contains the chatbot response.
Expand Down
6 changes: 6 additions & 0 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5782,6 +5782,12 @@ definitions:
type: integer
format: int64
title: top k, defaults to 5
llmModel:
type: string
title: LLM model name, defaults to `gpt-4o`
userInstruction:
type: string
title: Instruction for the model to follow, defaults to `Please answer user question accurately and in the same language as the Follow-up Question.`
description: |-
ChatRequest represents a request to send a message
to a chatbot synchronously and streams back the results.
Expand Down