models

package
v7.2.100 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package models builds model catalogs for Anthropic clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResponse

func BuildResponse(availableModels []map[string]any) map[string]any

BuildResponse builds an Anthropic model response from available models.

func EnsureClaudeModelIDPrefix

func EnsureClaudeModelIDPrefix(id string) string

EnsureClaudeModelIDPrefix rewrites model IDs for Anthropic model listings. IDs that already start with "claude-" are returned unchanged; all other IDs become "claude-fable-5-dd-" plus the original ID with its characters reversed.

func ResolveClaudeModelIDPrefix

func ResolveClaudeModelIDPrefix(id string) string

ResolveClaudeModelIDPrefix reverses EnsureClaudeModelIDPrefix for request routing. Optional thinking suffixes in model(value) form are preserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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