Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ai/src/providers/azure-openai-responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function formatAzureOpenAIError(error: unknown): string {
}

// Azure OpenAI Responses-specific options
export interface AzureOpenAIResponsesOptions extends StreamOptions {
interface AzureOpenAIResponsesOptions extends StreamOptions {
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
reasoningSummary?: "auto" | "detailed" | "concise" | null;
azureApiVersion?: string;
Expand Down
6 changes: 3 additions & 3 deletions packages/ai/src/providers/google-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { stripSystemPromptCacheBoundary } from "../utils/system-prompt-cache-bou
import { describeToolResultMediaPlaceholder, extractToolResultText } from "./tool-result-text.js";
import { transformMessages } from "./transform-messages.js";

export type GoogleApiType = "google-generative-ai" | "google-vertex";
type GoogleApiType = "google-generative-ai" | "google-vertex";

/**
* Thinking level for Gemini 3 models.
Expand All @@ -48,9 +48,9 @@ export type GoogleThinkingLevel =
| "MEDIUM"
| "HIGH";

export type GoogleToolChoice = "auto" | "none" | "any";
type GoogleToolChoice = "auto" | "none" | "any";

export type GoogleThinkingOptions = {
type GoogleThinkingOptions = {
enabled: boolean;
budgetTokens?: number;
level?: GoogleThinkingLevel;
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/src/providers/google-vertex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from "./google-shared.js";
import { buildBaseOptions } from "./simple-options.js";

export interface GoogleVertexOptions extends GoogleProviderOptions {
interface GoogleVertexOptions extends GoogleProviderOptions {
project?: string;
location?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/src/providers/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "./google-shared.js";
import { buildBaseOptions } from "./simple-options.js";

export type GoogleOptions = GoogleProviderOptions;
type GoogleOptions = GoogleProviderOptions;

// Counter for generating unique tool call IDs
let toolCallCounter = 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/src/providers/mistral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function createBoundedMistralFetcher(
*/
type MistralReasoningEffort = "none" | "high";

export interface MistralOptions extends StreamOptions {
interface MistralOptions extends StreamOptions {
toolChoice?:
| "auto"
| "none"
Expand Down
4 changes: 2 additions & 2 deletions packages/ai/src/providers/openai-chatgpt-responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const CODEX_RESPONSE_STATUSES = new Set<CodexResponseStatus>([
// Types
// ============================================================================

export interface OpenAICodexResponsesOptions extends StreamOptions {
interface OpenAICodexResponsesOptions extends StreamOptions {
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
reasoningSummary?: "auto" | "concise" | "detailed" | "off" | "on" | null;
serviceTier?: ResponseCreateParamsStreaming["service_tier"];
Expand Down Expand Up @@ -914,7 +914,7 @@ type WebSocketConstructor = new (
protocols?: string | string[] | { headers?: Record<string, string> },
) => WebSocketLike;

export interface OpenAICodexWebSocketDebugStats {
interface OpenAICodexWebSocketDebugStats {
requests: number;
connectionsCreated: number;
connectionsReused: number;
Expand Down
8 changes: 4 additions & 4 deletions packages/ai/src/providers/openai-responses-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function resolveReplayableResponsesMessageId(params: {
return params.previousReplayItemWasReasoning ? params.textSignatureId : undefined;
}

export interface OpenAIResponsesStreamOptions {
interface OpenAIResponsesStreamOptions {
serviceTier?: ResponseCreateParamsStreaming["service_tier"];
resolveServiceTier?: (
responseServiceTier: ResponseCreateParamsStreaming["service_tier"] | undefined,
Expand All @@ -179,7 +179,7 @@ export interface OpenAIResponsesStreamOptions {
) => void;
}

export interface ConvertResponsesMessagesOptions {
interface ConvertResponsesMessagesOptions {
includeSystemPrompt?: boolean;
replayResponsesItemIds?: boolean;
}
Expand Down Expand Up @@ -217,7 +217,7 @@ type ResponsesLifecycleStreamOptions = Pick<
type OpenAIResponsesProcessStreamOptions = OpenAIResponsesStreamOptions &
FirstStreamEventInternalOptions;

export type ResponsesReasoningEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
type ResponsesReasoningEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | "max";

function isResponsesReasoningEffort(
effort: string | undefined,
Expand All @@ -231,7 +231,7 @@ function isResponsesReasoningEffort(
effort === "max"
);
}
export type ResponsesReasoningSummary = "auto" | "detailed" | "concise" | null;
type ResponsesReasoningSummary = "auto" | "detailed" | "concise" | null;

type ResponsesCommonParamsOptions = Pick<StreamOptions, "maxTokens" | "temperature"> & {
reasoningEffort?: ResponsesReasoningEffort;
Expand Down
Loading