mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
refactor: trim provider attribution exports
This commit is contained in:
@@ -32,7 +32,7 @@ export type ProviderAttributionPolicy = {
|
||||
headers?: Record<string, string>;
|
||||
};
|
||||
|
||||
export type ProviderAttributionIdentity = Pick<ProviderAttributionPolicy, "product" | "version">;
|
||||
type ProviderAttributionIdentity = Pick<ProviderAttributionPolicy, "product" | "version">;
|
||||
|
||||
export type ProviderRequestTransport = "stream" | "websocket" | "http" | "media-understanding";
|
||||
export type ProviderRequestCapability = "llm" | "audio" | "image" | "video" | "other";
|
||||
@@ -444,7 +444,7 @@ function resolveKnownProviderFamily(provider: string | undefined): string {
|
||||
}
|
||||
}
|
||||
|
||||
export function isOpenAIResponsesApi(api: string | null | undefined): boolean {
|
||||
function isOpenAIResponsesApi(api: string | null | undefined): boolean {
|
||||
const normalizedApi = normalizeOptionalLowercaseString(api);
|
||||
return normalizedApi !== undefined && OPENAI_RESPONSES_APIS.has(normalizedApi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user