gen_models

package
v0.0.0-...-911f460 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Wizard = "wizardlm2:7b-q4_K_M"
	Qwen   = "qwen2:latest"
	Phi    = "phi3:latest"
	LLama3 = "llama3:latest"
)

Variables

This section is empty.

Functions

func GeminiGen

func GeminiGen(content string) (*genai.GenerateContentResponse, error)

func RetrieveResponse

func RetrieveResponse(parts []genai.Part) string

Types

type OllamaRequest

type OllamaRequest struct {
	Model  string `json:"model"`
	Prompt string `json:"prompt"`
	Stream bool   `json:"stream"`
}

type OllamaResponse

type OllamaResponse struct {
	Model              string `json:"model,omitempty"`
	Created            string `json:"created_at,omitempty"`
	Response           string `json:"response"`
	Done               bool   `json:"done,omitempty"`
	Context            []int  `json:"context"`
	TotalDuration      int64  `json:"total_duration,omitempty"`
	LoadDuration       int64  `json:"load_duration,omitempty"`
	PromptEvalDuration int64  `json:"prompt_eval_duration,omitempty"`
	EvalCount          int64  `json:"eval_count,omitempty"`
	EvalDuration       int64  `json:"eval_duration,omitempty"`
}

func OllamaGen

func OllamaGen(article scrapers.ScrapedResult) OllamaResponse

Jump to

Keyboard shortcuts

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