Class OpenrouterModel
java.lang.Object
com.bytedesk.ai.springai.providers.openrouter.OpenrouterModel
OpenRouter 模型信息实体类
基于 OpenRouter API (/models) 返回的真实数据结构创建
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class模型架构信息static class定价信息static class顶级提供商信息 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OpenrouterModel.Architecture模型架构信息private String模型的规范化标识符private Integer上下文长度(最大token数)private Long模型创建时间戳private String模型描述信息private StringHugging Face 模型ID(如果可用)private String模型ID (例如: "openai/gpt-4", "anthropic/claude-3-sonnet")private String模型显示名称private Object每请求限制private OpenrouterModel.Pricing定价信息支持的参数列表private OpenrouterModel.TopProvider顶级提供商信息 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
模型ID (例如: "openai/gpt-4", "anthropic/claude-3-sonnet") -
canonicalSlug
模型的规范化标识符 -
huggingFaceId
Hugging Face 模型ID(如果可用) -
name
模型显示名称 -
created
模型创建时间戳 -
description
模型描述信息 -
contextLength
上下文长度(最大token数) -
architecture
模型架构信息 -
pricing
定价信息 -
topProvider
顶级提供商信息 -
perRequestLimits
每请求限制 -
supportedParameters
支持的参数列表
-
-
Constructor Details
-
OpenrouterModel
public OpenrouterModel()
-
-
Method Details
-
fromMap
从Map转换为OpenrouterModel对象
-