Skip to main content

Module models

Module models 

Source
Expand description

Typed model resource conversions.

Model items and list pagination are intentionally separate. A model item can be converted without pretending that a cursor from one vendor is a page token in another vendor.

Re-exports§

pub use supplement::ClaudeCapabilities;
pub use supplement::ClaudeContextManagement;
pub use supplement::ClaudeEffort;
pub use supplement::ClaudeModelSupplement;
pub use supplement::ClaudeServerTools;
pub use supplement::ClaudeThinking;
pub use supplement::Converted;
pub use supplement::GeminiModelSupplement;
pub use supplement::ListPageFacts;
pub use supplement::OpenAiModelSupplement;

Structs§

ClaudeCapabilities
ClaudeContextManagement
ClaudeEffort
ClaudeModelSupplement
Target-specific Claude metadata. The nested capability facts are rebuilt into fresh wire structs so no supplement or source rest map is copied.
ClaudeServerTools
ClaudeThinking
GeminiModelSupplement
Facts for Gemini’s required baseModelId and version fields.
ListPageFacts
Pagination facts are target-specific. A cursor is never renamed to a page token implicitly. complete means the caller has aggregated the complete directory from the first request through its terminal page; it does not mean merely that the current source page has has_more = false.
OpenAiModelSupplement
Facts needed by targets whose model schema requires an owner or creation timestamp absent from the source. A source fact always wins; a conflicting supplied fact is rejected.

Functions§

claude_to_gemini
claude_to_gemini_list
claude_to_openai
claude_to_openai_list
gemini_to_claude
gemini_to_claude_list
gemini_to_openai
gemini_to_openai_list
normalize_openai_list
Reconcile the two OpenAI directory representations using the same typed model. Standard identity/timestamps and alternate catalog metadata describe one resource.
openai_to_claude
openai_to_claude_list
openai_to_gemini
openai_to_gemini_list