Skip to content

Commit

Permalink
chore(app): add optional parameters (#518)
Browse files Browse the repository at this point in the history
Because

- support choosing LLM model and providing instruction

This commit

- add optional `llm_model` and `user_instructions`

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
heiruwu and droplet-bot authored Nov 19, 2024
1 parent 81532b9 commit 67d3fb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 67d3fb5

Please sign in to comment.