DomainModelChatGPT

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatGPTMessageResponse

type ChatGPTMessageResponse struct {
	Choices []struct {
		Message Message `json:"message"`
	} `json:"choices"`
}

type ChatGPTService

type ChatGPTService struct {
	BaseRequest Base.BaseRequest
	ChatGPTApi  InfrastructureChatGPTAPI.ChatGPTAPIRepository
}

func (ChatGPTService) TranslateIntoHumanLanguage

func (cg ChatGPTService) TranslateIntoHumanLanguage(json json.RawMessage) Message

type Message

type Message struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

func (Message) GetContent

func (m Message) GetContent() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL