zot/packages/provider/extra_models.go
patriceckhart fa7d8d8be5 refactor: split source into packages/{provider,core,tui,agent}
Single Go module, four top-level packages under packages/. Import
paths become github.com/patriceckhart/zot/packages/<name>; downstream
consumers can depend on individual packages without pulling the rest.

Layout:
  packages/provider/     LLM clients + catalog
  packages/provider/auth/ credential store + OAuth + login server
  packages/core/         agent loop, sessions, cost
  packages/tui/          terminal toolkit + chat view
  packages/agent/        CLI wiring, system prompt
    extensions/ extproto/ modes/ tools/ skills/ swarm/
    sdk/  (was pkg/zotcore, package renamed zotcore -> sdk)
    ext/  (was pkg/zotext, package renamed zotext -> ext)

internal/ and pkg/ removed. The internal/assets logo moved into
packages/provider/auth/assets.

Public Go SDK identifiers renamed:
  pkg/zotcore (package zotcore) -> packages/agent/sdk (package sdk)
  pkg/zotext  (package zotext)  -> packages/agent/ext (package ext)

This breaks Go-based extensions and embedders; the JSON wire protocol
for extensions and RPC is unchanged, so non-Go extensions, already-
built extension binaries, and zot rpc consumers are unaffected.

Docs, examples, and the built-in write-zot-extension skill updated
for the new paths and identifiers. Shadow-bug fixes in code samples
(ext := ext.New -> e := ext.New).
2026-05-27 09:07:15 +02:00

41 lines
2.2 KiB
Go

package provider
// Hand-curated catalog supplements that the bulk builtin catalog
// (catalog_builtin.go) doesn't cover.
//
// - openai-responses: zot-specific provider id for the public OpenAI
// Responses API (api.openai.com/v1/responses). Separate from
// `openai` (Chat Completions) and `openai-codex` (ChatGPT subscription).
// - kimi/kimi-k2-thinking: matches the Anthropic-Messages endpoint
// at api.kimi.com/coding; not present in the bulk builtin file
// because the `kimi` provider lives in models.go alongside the
// other curated providers.
func init() { Catalog = append(Catalog, supplementCatalog...) }
var supplementCatalog = []Model{
// ----- kimi (anthropic-messages on api.kimi.com/coding) -----
{Provider: "kimi", ID: "kimi-k2-thinking", DisplayName: "Kimi K2 Thinking",
ContextWindow: 262144, MaxOutput: 32000, Reasoning: true,
BaseURL: "https://api.kimi.com/coding"},
// ----- openai-responses (public OpenAI Responses API) -----
{Provider: "openai-responses", ID: "gpt-5", DisplayName: "GPT-5 (Responses)",
ContextWindow: 400000, MaxOutput: 128000, Reasoning: true,
PriceInput: 1.25, PriceOutput: 10.00, PriceCacheRead: 0.125},
{Provider: "openai-responses", ID: "gpt-5-mini", DisplayName: "GPT-5 mini (Responses)",
ContextWindow: 400000, MaxOutput: 128000, Reasoning: true,
PriceInput: 0.25, PriceOutput: 2.00, PriceCacheRead: 0.025},
{Provider: "openai-responses", ID: "gpt-5-nano", DisplayName: "GPT-5 nano (Responses)",
ContextWindow: 400000, MaxOutput: 128000, Reasoning: true,
PriceInput: 0.05, PriceOutput: 0.40, PriceCacheRead: 0.005},
{Provider: "openai-responses", ID: "gpt-5-codex", DisplayName: "GPT-5 Codex (Responses)",
ContextWindow: 400000, MaxOutput: 128000, Reasoning: true,
PriceInput: 1.25, PriceOutput: 10.00, PriceCacheRead: 0.125},
{Provider: "openai-responses", ID: "o3", DisplayName: "o3 (Responses)",
ContextWindow: 200000, MaxOutput: 100000, Reasoning: true,
PriceInput: 2.00, PriceOutput: 8.00, PriceCacheRead: 0.50},
{Provider: "openai-responses", ID: "o4-mini", DisplayName: "o4-mini (Responses)",
ContextWindow: 200000, MaxOutput: 100000, Reasoning: true,
PriceInput: 1.10, PriceOutput: 4.40, PriceCacheRead: 0.275},
}