mirror of
https://github.com/harness/drone.git
synced 2025-05-02 13:40:22 +00:00
[fix]: [ML-575]: make conversationID optional parameter in chat (#3344)
* make conversationID optional parameter in chat * generate conversation ID in backend * Merge branch 'main' into ML-575 * gci run * gci run * gci run * gci run * lint error fix * gci run * resolve comments * re_generate to regenerate * gci run * lint errors fix * lint error fix * update actions struct correctly * update actions struct * lint error fix * chat struct and two new enums for actions * merged * merge with ML-562 * temp * done * done * remove redundant file * fixed lint errors in submodule * lint error fix * Update wire_gen.go * Update wire_gen.go * fix lint errors * updated error message * changed loc of enum definitions * new endpoint /chat * new type chat * original * to original * made required changes * trial * fix lint errors-3 * fix lint errors-2 * fix lint errors * 3 new enums for stagetype, messagetype, role * enum types for stagetype, role and messagetype * role enum and message type enum * ML-562: New enum
This commit is contained in:
parent
296000b952
commit
5f11b9ed2d
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
// Chat represents a chat conversation with a unique ID, prompt, metadata, and conversation history.
|
// Chat represents a chat conversation with a unique ID, prompt, metadata, and conversation history.
|
||||||
type Chat struct {
|
type Chat struct {
|
||||||
ConversationID uuid.UUID `json:"conversation_uuid"`
|
ConversationID uuid.UUID `json:"conversation_uuid,omitempty"`
|
||||||
Prompt string `json:"prompt"`
|
Prompt string `json:"prompt"`
|
||||||
Metadata map[string]string `json:"metadata"`
|
Metadata map[string]string `json:"metadata"`
|
||||||
Conversation []Conversation `json:"conversation"`
|
Conversation []Conversation `json:"conversation"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user