-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.ai function caller.index.<internal>.ClientOptions
index.<internal>.ClientOptions
- apiKey
- baseURL
- dangerouslyAllowBrowser
- defaultHeaders
- defaultQuery
- fetch
- httpAgent
- maxRetries
- organization
- timeout
• Optional
apiKey: string
Defaults to process.env['OPENAI_API_KEY'].
node_modules/openai/index.d.ts:11
• Optional
baseURL: string
Override the default base URL for the API, e.g., "https://api.example.com/v2/"
node_modules/openai/index.d.ts:19
• Optional
dangerouslyAllowBrowser: boolean
By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
Only set this option to true
if you understand the risks and have appropriate mitigations in place.
node_modules/openai/index.d.ts:67
• Optional
defaultHeaders: Headers
Default headers to include with every request to the API.
These can be removed in individual requests by explicitly setting the
header to undefined
or null
in request options.
node_modules/openai/index.d.ts:55
• Optional
defaultQuery: DefaultQuery
Default query parameters to include with every request to the API.
These can be removed in individual requests by explicitly setting the
param to undefined
in request options.
node_modules/openai/index.d.ts:62
• Optional
fetch: Fetch
Specify a custom fetch
function implementation.
If not provided, we use node-fetch
on Node.js and otherwise expect that fetch
is
defined globally.
node_modules/openai/index.d.ts:41
• Optional
httpAgent: Agent
An HTTP agent used to manage HTTP(S) connections.
If not provided, an agent will be constructed by default in the Node.js environment, otherwise no agent is used.
node_modules/openai/index.d.ts:34
• Optional
maxRetries: number
The maximum number of times that the client will retry a request in case of a temporary failure, like a network error or a 5XX error from the server.
Default
2
node_modules/openai/index.d.ts:48
• Optional
organization: null
| string
Defaults to process.env['OPENAI_ORG_ID'].
node_modules/openai/index.d.ts:15
• Optional
timeout: number
The maximum amount of time (in milliseconds) that the client should wait for a response from the server before timing out a single request.
Note that request timeouts are retried by default, so in a worst-case scenario you may wait much longer than this timeout before the promise succeeds or fails.
node_modules/openai/index.d.ts:27
- @ralphschuler/ai-function-caller
- index
- types/AIFunction
- types/Message
- @ralphschuler/assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- error
- index
- util
- @ralphschuler/better-map
- @ralphschuler/better-set
- @ralphschuler/binary-serializer
- @ralphschuler/bit-mask
- @ralphschuler/complex-compare
- @ralphschuler/i811n
- @ralphschuler/logger
- Color
- ColorMap
- Logger
- animations/BallonAnimation
- animations/BaseAnimation
- animations/BombAnimation
- animations/BouncingBallAnimation
- animations/ClockAnimation
- animations/DotsAnimation
- animations/HorizontalBarAnimation
- animations/PongAnimation
- animations/ProgressAnimation
- animations/ProgressBarAnimation
- animations/SpinnerAnimation
- animations/VerticalBarAnimation
- enums/LogLevel
- index
- interfaces/IColor
- interfaces/IMessage
- types/ColorName
- types/Colors
- @ralphschuler/lsystem
- @ralphschuler/mixin-class-factory
- @ralphschuler/neuronal-network
- @ralphschuler/parser-combinator
- index
- inputTypes
- parser
- unicode
- @ralphschuler/prom-metrics-decorator
- @ralphschuler/prom-metrics-parser
- @ralphschuler/random
- PseudoRandomItemSelector
- PseudoRandomNumberGenerator
- Seed
- index
- strategies
- strategy
- strategy
- strategy
- strategy
- strategy
- strategy
- types
- type
- type
- type
- @ralphschuler/safe-array
- @ralphschuler/slot-mashine
- @ralphschuler/state-store
- StateStore
- index
- type
- type
- type
- type
- type
- type
- type
- type
- util
- @ralphschuler/stats-tracker
- @ralphschuler/ts-error
- error
- index
- type
- util
- util
- util
- util
- @ralphschuler/webgl-sand-engine
- index
- pixel-renderer
- @ralphschuler/webgl-shader-factory
- "node:stream/consumers"
- "node:stream/promises"
- ChatCompletionSnapshot
- Choice
- Message
- ToolCall
- EventEmitter
- FormData
- OpenAI
- OpenAI
- Audio
- Speech
- Transcriptions
- Translations
- Beta
- Assistants
- Assistant
- AssistantCreateParams
- AssistantUpdateParams
- Files
- Chat
- Threads
- Messages
- Files
- MessageContentImageFile
- MessageContentText
- Text
- FileCitation
- FilePath
- Runs
- RequiredActionFunctionToolCall
- Run
- RequiredAction
- RunCreateParams
- RunSubmitToolOutputsParams
- Steps
- CodeToolCall
- CodeInterpreter
- Image
- FunctionToolCall
- MessageCreationStepDetails
- RunStep
- ThreadCreateAndRunParams
- Thread
- ThreadCreateParams
- Chat
- Completions
- ChatCompletion
- ChatCompletionAssistantMessageParam
- ChatCompletionChunk
- Choice
- Delta
- ToolCall
- ChatCompletionContentPartImage
- ChatCompletionCreateParams
- ChatCompletionMessage
- ChatCompletionMessageToolCall
- ChatCompletionNamedToolChoice
- Completions
- CompletionChoice
- CompletionCreateParams
- Edits
- Edit
- Embeddings
- CreateEmbeddingResponse
- Files
- FineTunes
- FineTune
- FineTuneCreateParams
- FineTuneListEventsParams
- FineTuning
- Jobs
- FineTuningJob
- JobCreateParams
- Images
- Models
- Moderations
- Moderation
- internal
- finished
- pipeline
- "node:stream/consumers"
- "node:stream/promises"
- EventEmitter
- internal
- finished
- pipeline
- Counter
- Gauge
- Histogram
- Summary