summarisation

package
v0.0.0-...-c0f943f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompletionRequest

func CompletionRequest(txt []byte) (*http.Request, error)

func GetTechnicalQualitiesForAJobPrompt

func GetTechnicalQualitiesForAJobPrompt(txt []byte) []byte

Types

type CompletionResponse

type CompletionResponse struct {
	Choices []struct {
		Text string `json:"text"`
	} `json:"choices"`
}

type CountJobQualityOccurrenceRequest

type CountJobQualityOccurrenceRequest struct {
	Model            string    `json:"model"`
	Messages         []Message `json:"messages"`
	MaxTokens        int       `json:"max_tokens"`
	Temperature      float64   `json:"temperature"`
	TopP             float64   `json:"top_p"`
	FrequencyPenalty float64   `json:"frequency_penalty"`
	PresencePenalty  float64   `json:"presence_penalty"`
}

type CountJobQualityOccurrenceResponse

type CountJobQualityOccurrenceResponse struct {
	Id      string `json:"id"`
	Object  string `json:"object"`
	Created int    `json:"created"`
	Model   string `json:"model"`
	Choices []struct {
		Message struct {
			Role    string `json:"role"`
			Content string `json:"content"`
		} `json:"message"`
		FinishReason string `json:"finish_reason"`
	} `json:"choices"`
}

type Message

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

type OpenAIClient

type OpenAIClient struct {
	// contains filtered or unexported fields
}

func NewOpenAIClient

func NewOpenAIClient() *OpenAIClient

func (*OpenAIClient) GetChatCompletion

func (api *OpenAIClient) GetChatCompletion(txt string) (*http.Request, error)

func (*OpenAIClient) GetTechnicalQualitiesCountSummary

func (api *OpenAIClient) GetTechnicalQualitiesCountSummary(txt []byte) (string, error)

func (*OpenAIClient) GetTechnicalQualitiesForAJob

func (api *OpenAIClient) GetTechnicalQualitiesForAJob(txt []byte) (string, error)

func (*OpenAIClient) GetTechnicalQualitiesForJobs

func (api *OpenAIClient) GetTechnicalQualitiesForJobs(folderPath string, outputFile string) error

Jump to

Keyboard shortcuts

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