UNPKG

ravendb

Version:
36 lines 1.34 kB
import { AbstractAiSettings } from "./AbstractAiSettings.js"; import { IAiSettings } from "./IAiSettings.js"; import { AiSettingsCompareDifferences } from "../AiSettingsCompareDifferences.js"; /** * Base settings for OpenAI-compatible providers. */ export declare abstract class OpenAiBaseSettings extends AbstractAiSettings implements IAiSettings { /** * The API key to use to authenticate with the service. */ apiKey: string; /** * The service endpoint that the client will send requests to. */ endpoint: string; /** * The model that should be used. */ model: string; /** * The number of dimensions that the model should use. */ dimensions?: number; /** * Controls randomness of the model output. Range typically [0.0, 2.0]. * Higher values (e.g., 1.0+) make output more creative and diverse; * lower values (e.g., 0.2) make it more deterministic. * When undefined, the parameter is not sent. */ temperature?: number; protected constructor(apiKey: string, endpoint: string, model: string, dimensions?: number, temperature?: number); getBaseEndpointUri(): string; validate(errors: string[]): void; compare(other: AbstractAiSettings): AiSettingsCompareDifferences; } //# sourceMappingURL=OpenAiBaseSettings.d.ts.map