config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2025 National Technology and Engineering Solutions of Sandia SPDX-License-Identifier: BSD-3-Clause

Copyright 2025 National Technology and Engineering Solutions of Sandia SPDX-License-Identifier: BSD-3-Clause

Copyright 2025 National Technology and Engineering Solutions of Sandia SPDX-License-Identifier: BSD-3-Clause

Index

Constants

View Source
const (
	KeyElsevierAPIKey    = "elsevier_api_key"
	KeyOpenAIAuditDir    = "openai_audit_dir"
	KeyOpenAIAuditEnable = "openai_audit_enabled"
	KeyOpenRouterAPIKey  = "openrouter_api_key"
	KeyOpenRouterBaseURL = "openrouter_base_url"
	KeyShirtyAPIKey      = "shirty_api_key"
	KeyShirtyBaseURL     = "shirty_base_url"
	KeyShirtyModel       = "shirty_model"

	DefaultOpenRouterBaseURL = "https://openrouter.ai/api/v1"

	DefaultShirtyBaseURL = "https://shirty.sandia.gov/api/v1"
	DefaultShirtyModel   = "meta-llama/Llama-3.3-70B-Instruct"
)

Variables

This section is empty.

Functions

func BindFlags added in v0.2.2

func BindFlags(flags *pflag.FlagSet) error

func OpenAIAuditDir added in v0.3.0

func OpenAIAuditDir(settings Settings) (string, error)

func StateHome added in v0.3.0

func StateHome() (string, error)

func UserAgent

func UserAgent() string

func UserEmail

func UserEmail() string

Types

type Settings added in v0.2.2

type Settings struct {
	ElsevierAPIKey    string
	OpenAIAuditDir    string
	OpenAIAuditEnable bool
	OpenRouterAPIKey  string
	OpenRouterBaseURL string
	ShirtyAPIKey      string
	ShirtyBaseURL     string
	ShirtyModel       string
}

func Runtime added in v0.2.2

func Runtime() Settings

Jump to

Keyboard shortcuts

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