GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.Enums.AIModel Struct Reference

Model ID to request from the AI provider via GPAL.AI.WithModel. Acts like an enum of well-known model IDs per provider, but also accepts any freehand string (e.g. a brand new model release that predates this enum) via an implicit conversion from string. More...

Public Member Functions

override string ToString ()

Static Public Member Functions

static implicit operator AIModel (string modelId)
 Any model ID string, including ones not yet listed above.

Static Public Attributes

static readonly AIModel Grok2Latest = new AIModel("grok-2-latest")
static readonly AIModel Grok3Latest = new AIModel("grok-3-latest")
static readonly AIModel GPT4o = new AIModel("gpt-4o")
static readonly AIModel GPT4oMini = new AIModel("gpt-4o-mini")
static readonly AIModel O3Mini = new AIModel("o3-mini")
static readonly AIModel ClaudeHaiku45 = new AIModel("claude-haiku-4-5-20251001")
static readonly AIModel ClaudeSonnet46 = new AIModel("claude-sonnet-4-6")
static readonly AIModel ClaudeOpus5 = new AIModel("claude-opus-5")
static readonly AIModel ClaudeFable5 = new AIModel("claude-fable-5")

Detailed Description

Model ID to request from the AI provider via GPAL.AI.WithModel. Acts like an enum of well-known model IDs per provider, but also accepts any freehand string (e.g. a brand new model release that predates this enum) via an implicit conversion from string.

Definition at line 865 of file Enums.cs.

Member Function Documentation

◆ operator AIModel()

implicit GenerallyPositive.Enums.AIModel.operator AIModel ( string modelId)
static

Any model ID string, including ones not yet listed above.

Definition at line 887 of file Enums.cs.

◆ ToString()

override string GenerallyPositive.Enums.AIModel.ToString ( )

Definition at line 889 of file Enums.cs.

Member Data Documentation

◆ ClaudeFable5

readonly AIModel GenerallyPositive.Enums.AIModel.ClaudeFable5 = new AIModel("claude-fable-5")
static

Definition at line 884 of file Enums.cs.

◆ ClaudeHaiku45

readonly AIModel GenerallyPositive.Enums.AIModel.ClaudeHaiku45 = new AIModel("claude-haiku-4-5-20251001")
static

Definition at line 881 of file Enums.cs.

◆ ClaudeOpus5

readonly AIModel GenerallyPositive.Enums.AIModel.ClaudeOpus5 = new AIModel("claude-opus-5")
static

Definition at line 883 of file Enums.cs.

◆ ClaudeSonnet46

readonly AIModel GenerallyPositive.Enums.AIModel.ClaudeSonnet46 = new AIModel("claude-sonnet-4-6")
static

Definition at line 882 of file Enums.cs.

◆ GPT4o

readonly AIModel GenerallyPositive.Enums.AIModel.GPT4o = new AIModel("gpt-4o")
static

Definition at line 876 of file Enums.cs.

◆ GPT4oMini

readonly AIModel GenerallyPositive.Enums.AIModel.GPT4oMini = new AIModel("gpt-4o-mini")
static

Definition at line 877 of file Enums.cs.

◆ Grok2Latest

readonly AIModel GenerallyPositive.Enums.AIModel.Grok2Latest = new AIModel("grok-2-latest")
static

Definition at line 872 of file Enums.cs.

◆ Grok3Latest

readonly AIModel GenerallyPositive.Enums.AIModel.Grok3Latest = new AIModel("grok-3-latest")
static

Definition at line 873 of file Enums.cs.

◆ O3Mini

readonly AIModel GenerallyPositive.Enums.AIModel.O3Mini = new AIModel("o3-mini")
static

Definition at line 878 of file Enums.cs.


The documentation for this struct was generated from the following file: