Skip to content

TS SDK: generic LLM config support#8

Open
spichen wants to merge 2 commits into
mainfrom
ts-generic-llm-config
Open

TS SDK: generic LLM config support#8
spichen wants to merge 2 commits into
mainfrom
ts-generic-llm-config

Conversation

@spichen

@spichen spichen commented May 13, 2026

Copy link
Copy Markdown
Owner

TypeScript port of oracle#147.

LlmConfig was abstract-only before. Now it's a real component you can use directly — handy when none of the specific subclasses fit your setup:

createLlmConfig({
  name: "my-llm",
  modelId: "gpt-4o",
  provider: "openai",
  apiProvider: "openai",
})

Also added: GeminiConfig (AI Studio + Vertex AI), RetryPolicy on all LLM types, TLS cert fields on the OpenAI-compatible family, and XAI to ModelProvider for OCI.

Fields implied by componentType (like provider: "openai" on OpenAiConfig) are excluded from serialized output, matching Python SDK behavior.

@spichen spichen force-pushed the ts-generic-llm-config branch from eaf39bd to c3b030f Compare May 14, 2026 04:48
@spichen spichen force-pushed the ts-generic-llm-config branch from f518482 to 7de2691 Compare May 14, 2026 05:31
@spichen spichen force-pushed the ts-generic-llm-config branch from 947ee8c to 3fa3f46 Compare May 14, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant