@mate-academy/llm-gateway 8.8.2 → 8.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LLMError.d.ts +12 -0
- package/dist/LLMError.js +36 -0
- package/dist/LLMError.js.map +1 -0
- package/dist/LLMGateway.d.ts +30 -0
- package/dist/LLMGateway.js +56 -0
- package/dist/LLMGateway.js.map +1 -0
- package/dist/LLMGateway.typedefs.d.ts +5 -0
- package/dist/LLMGateway.typedefs.js +3 -0
- package/dist/LLMGateway.typedefs.js.map +1 -0
- package/dist/LLMService.constants.d.ts +26309 -0
- package/dist/LLMService.constants.js +35 -0
- package/dist/LLMService.constants.js.map +1 -0
- package/dist/LLMService.factory.d.ts +71 -0
- package/dist/LLMService.factory.js +102 -0
- package/dist/LLMService.factory.js.map +1 -0
- package/dist/LLMService.typedefs.d.ts +655 -0
- package/dist/LLMService.typedefs.js +72 -0
- package/dist/LLMService.typedefs.js.map +1 -0
- package/dist/advanced.d.ts +11 -0
- package/dist/advanced.js +32 -0
- package/dist/advanced.js.map +1 -0
- package/dist/client/LLMAgent.d.ts +76 -0
- package/dist/client/LLMAgent.js +36 -0
- package/dist/client/LLMAgent.js.map +1 -0
- package/dist/client/LLMClientEngine.d.ts +110 -0
- package/dist/client/LLMClientEngine.js +406 -0
- package/dist/client/LLMClientEngine.js.map +1 -0
- package/dist/client/agentRun.typedefs.d.ts +200 -0
- package/dist/client/agentRun.typedefs.js +25 -0
- package/dist/client/agentRun.typedefs.js.map +1 -0
- package/dist/client/agentRunner.d.ts +161 -0
- package/dist/client/agentRunner.js +517 -0
- package/dist/client/agentRunner.js.map +1 -0
- package/dist/client/codegen/fetchPromptRecords.d.ts +14 -0
- package/dist/client/codegen/fetchPromptRecords.js +90 -0
- package/dist/client/codegen/fetchPromptRecords.js.map +1 -0
- package/dist/client/codegen/generateSnapshot.d.ts +19 -0
- package/dist/client/codegen/generateSnapshot.js +28 -0
- package/dist/client/codegen/generateSnapshot.js.map +1 -0
- package/dist/client/codegen/index.d.ts +6 -0
- package/dist/client/codegen/index.js +23 -0
- package/dist/client/codegen/index.js.map +1 -0
- package/dist/client/codegen/promptCatalog.typedefs.d.ts +51 -0
- package/dist/client/codegen/promptCatalog.typedefs.js +3 -0
- package/dist/client/codegen/promptCatalog.typedefs.js.map +1 -0
- package/dist/client/codegen/promptName.d.ts +8 -0
- package/dist/client/codegen/promptName.js +21 -0
- package/dist/client/codegen/promptName.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.constants.d.ts +7 -0
- package/dist/client/codegen/renderSnapshot.constants.js +16 -0
- package/dist/client/codegen/renderSnapshot.constants.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.d.ts +9 -0
- package/dist/client/codegen/renderSnapshot.js +109 -0
- package/dist/client/codegen/renderSnapshot.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.typedefs.d.ts +19 -0
- package/dist/client/codegen/renderSnapshot.typedefs.js +3 -0
- package/dist/client/codegen/renderSnapshot.typedefs.js.map +1 -0
- package/dist/client/coerceToolResult.d.ts +10 -0
- package/dist/client/coerceToolResult.js +38 -0
- package/dist/client/coerceToolResult.js.map +1 -0
- package/dist/client/createLLMClient.d.ts +10 -0
- package/dist/client/createLLMClient.js +47 -0
- package/dist/client/createLLMClient.js.map +1 -0
- package/dist/client/defineLLMPrompts.d.ts +34 -0
- package/dist/client/defineLLMPrompts.js +13 -0
- package/dist/client/defineLLMPrompts.js.map +1 -0
- package/dist/client/errors.d.ts +57 -0
- package/dist/client/errors.js +70 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/index.d.ts +13 -0
- package/dist/client/index.js +30 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/llmClient.typedefs.d.ts +265 -0
- package/dist/client/llmClient.typedefs.js +11 -0
- package/dist/client/llmClient.typedefs.js.map +1 -0
- package/dist/client/llmConfig.schema.d.ts +53 -0
- package/dist/client/llmConfig.schema.js +49 -0
- package/dist/client/llmConfig.schema.js.map +1 -0
- package/dist/client/plainMessages.d.ts +12 -0
- package/dist/client/plainMessages.js +19 -0
- package/dist/client/plainMessages.js.map +1 -0
- package/dist/client/promptClientPort.typedefs.d.ts +60 -0
- package/dist/client/promptClientPort.typedefs.js +3 -0
- package/dist/client/promptClientPort.typedefs.js.map +1 -0
- package/dist/client/promptRegistry.runtime.d.ts +121 -0
- package/dist/client/promptRegistry.runtime.js +264 -0
- package/dist/client/promptRegistry.runtime.js.map +1 -0
- package/dist/client/promptSnapshot.typedefs.d.ts +55 -0
- package/dist/client/promptSnapshot.typedefs.js +3 -0
- package/dist/client/promptSnapshot.typedefs.js.map +1 -0
- package/dist/client/promptVariables.d.ts +7 -0
- package/dist/client/promptVariables.js +13 -0
- package/dist/client/promptVariables.js.map +1 -0
- package/dist/client/snapshotRuntime.d.ts +17 -0
- package/dist/client/snapshotRuntime.js +42 -0
- package/dist/client/snapshotRuntime.js.map +1 -0
- package/dist/client/snapshotRuntime.typedefs.d.ts +13 -0
- package/dist/client/snapshotRuntime.typedefs.js +3 -0
- package/dist/client/snapshotRuntime.typedefs.js.map +1 -0
- package/dist/client/validationGate.d.ts +24 -0
- package/dist/client/validationGate.js +54 -0
- package/dist/client/validationGate.js.map +1 -0
- package/dist/codegen.d.ts +6 -0
- package/dist/codegen.js +23 -0
- package/dist/codegen.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.d.ts +873 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js +269 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.d.ts +24 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.js +210 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.d.ts +22 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.js +20 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.d.ts +6 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.js +18 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/index.d.ts +5 -0
- package/dist/providers/GoogleGenerativeAI/index.js +22 -0
- package/dist/providers/GoogleGenerativeAI/index.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.d.ts +12 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.js +72 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.d.ts +71 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js +876 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.d.ts +25 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.js +216 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.d.ts +10 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.js +136 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.d.ts +11 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.js +97 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/index.d.ts +4 -0
- package/dist/providers/GoogleGenerativeAI/services/index.js +21 -0
- package/dist/providers/GoogleGenerativeAI/services/index.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.d.ts +35832 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js +8601 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js +48 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.d.ts +516 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js +564 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.d.ts +376 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.js +739 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js +19 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js.map +1 -0
- package/dist/providers/LLMAPI/index.d.ts +7 -0
- package/dist/providers/LLMAPI/index.js +24 -0
- package/dist/providers/LLMAPI/index.js.map +1 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.d.ts +3 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js +8 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.d.ts +76 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js +825 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.d.ts +25 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js +177 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.d.ts +17 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js +34 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.d.ts +20 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.js +36 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/index.d.ts +4 -0
- package/dist/providers/LLMAPI/services/index.js +21 -0
- package/dist/providers/LLMAPI/services/index.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/index.d.ts +4 -0
- package/dist/providers/LLMAPI/utilities/index.js +13 -0
- package/dist/providers/LLMAPI/utilities/index.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.d.ts +7 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.js +35 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.d.ts +1 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.js +7 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.d.ts +13 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.js +29 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.d.ts +10 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.js +21 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.constants.d.ts +1664 -0
- package/dist/providers/OpenAI/OpenAI.constants.js +310 -0
- package/dist/providers/OpenAI/OpenAI.constants.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.entity.d.ts +15 -0
- package/dist/providers/OpenAI/OpenAI.entity.js +162 -0
- package/dist/providers/OpenAI/OpenAI.entity.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.d.ts +61 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.js +39 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.js.map +1 -0
- package/dist/providers/OpenAI/OpenAIService.factory.d.ts +6 -0
- package/dist/providers/OpenAI/OpenAIService.factory.js +18 -0
- package/dist/providers/OpenAI/OpenAIService.factory.js.map +1 -0
- package/dist/providers/OpenAI/index.d.ts +5 -0
- package/dist/providers/OpenAI/index.js +22 -0
- package/dist/providers/OpenAI/index.js.map +1 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.d.ts +14 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.js +87 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.d.ts +42 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js +712 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.d.ts +7 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js +12 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.d.ts +17 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js +40 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.d.ts +13 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.js +32 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.js.map +1 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.d.ts +3 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.js +19 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.js.map +1 -0
- package/dist/providers/OpenAI/services/index.d.ts +4 -0
- package/dist/providers/OpenAI/services/index.js +21 -0
- package/dist/providers/OpenAI/services/index.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.d.ts +30 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js +233 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.d.ts +22 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js +98 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.d.ts +22 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.js +67 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.js.map +1 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.js +20 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/services/LLMAssistanceService.abstract.d.ts +39 -0
- package/dist/services/LLMAssistanceService.abstract.js +101 -0
- package/dist/services/LLMAssistanceService.abstract.js.map +1 -0
- package/dist/services/LLMBaseService.abstract.d.ts +161 -0
- package/dist/services/LLMBaseService.abstract.js +392 -0
- package/dist/services/LLMBaseService.abstract.js.map +1 -0
- package/dist/services/LLMCompletionService.abstract.d.ts +16 -0
- package/dist/services/LLMCompletionService.abstract.js +12 -0
- package/dist/services/LLMCompletionService.abstract.js.map +1 -0
- package/dist/services/LLMServicePurposeFactory.abstract.d.ts +12 -0
- package/dist/services/LLMServicePurposeFactory.abstract.js +7 -0
- package/dist/services/LLMServicePurposeFactory.abstract.js.map +1 -0
- package/dist/services/LLMSpeechToTextService.abstract.d.ts +8 -0
- package/dist/services/LLMSpeechToTextService.abstract.js +12 -0
- package/dist/services/LLMSpeechToTextService.abstract.js.map +1 -0
- package/dist/services/LLMTextToSpeechService.abstract.d.ts +8 -0
- package/dist/services/LLMTextToSpeechService.abstract.js +12 -0
- package/dist/services/LLMTextToSpeechService.abstract.js.map +1 -0
- package/dist/services/agentRounds/LLMAgentRounds.d.ts +32 -0
- package/dist/services/agentRounds/LLMAgentRounds.js +77 -0
- package/dist/services/agentRounds/LLMAgentRounds.js.map +1 -0
- package/dist/services/agentRounds/agentRounds.typedefs.d.ts +48 -0
- package/dist/services/agentRounds/agentRounds.typedefs.js +3 -0
- package/dist/services/agentRounds/agentRounds.typedefs.js.map +1 -0
- package/dist/services/agentRounds/index.d.ts +2 -0
- package/dist/services/agentRounds/index.js +19 -0
- package/dist/services/agentRounds/index.js.map +1 -0
- package/dist/services/chatState/CompletionsChatState.d.ts +35 -0
- package/dist/services/chatState/CompletionsChatState.js +118 -0
- package/dist/services/chatState/CompletionsChatState.js.map +1 -0
- package/dist/services/chatState/index.d.ts +1 -0
- package/dist/services/chatState/index.js +6 -0
- package/dist/services/chatState/index.js.map +1 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.d.ts +15 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js +172 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js.map +1 -0
- package/dist/services/fileStorage/InMemoryFileStorage.d.ts +20 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js +67 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js.map +1 -0
- package/dist/services/fileStorage/fileStorageTools.d.ts +26 -0
- package/dist/services/fileStorage/fileStorageTools.js +68 -0
- package/dist/services/fileStorage/fileStorageTools.js.map +1 -0
- package/dist/services/fileStorage/index.d.ts +4 -0
- package/dist/services/fileStorage/index.js +11 -0
- package/dist/services/fileStorage/index.js.map +1 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/index.js +24 -0
- package/dist/services/index.js.map +1 -0
- package/dist/utilities/calculateCosts.d.ts +4 -0
- package/dist/utilities/calculateCosts.js +56 -0
- package/dist/utilities/calculateCosts.js.map +1 -0
- package/dist/utilities/functional.utils.d.ts +1 -0
- package/dist/utilities/functional.utils.js +9 -0
- package/dist/utilities/functional.utils.js.map +1 -0
- package/dist/utilities/index.d.ts +9 -0
- package/dist/utilities/index.js +26 -0
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/llmTracing/index.d.ts +3 -0
- package/dist/utilities/llmTracing/index.js +20 -0
- package/dist/utilities/llmTracing/index.js.map +1 -0
- package/dist/utilities/llmTracing/llmTracing.constants.d.ts +7 -0
- package/dist/utilities/llmTracing/llmTracing.constants.js +11 -0
- package/dist/utilities/llmTracing/llmTracing.constants.js.map +1 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.d.ts +126 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.js +3 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.js.map +1 -0
- package/dist/utilities/llmTracing/noopLLMTracing.d.ts +3 -0
- package/dist/utilities/llmTracing/noopLLMTracing.js +36 -0
- package/dist/utilities/llmTracing/noopLLMTracing.js.map +1 -0
- package/dist/utilities/logger/LLMLoggerInterface.d.ts +36 -0
- package/dist/utilities/logger/LLMLoggerInterface.js +3 -0
- package/dist/utilities/logger/LLMLoggerInterface.js.map +1 -0
- package/dist/utilities/logger/index.d.ts +1 -0
- package/dist/utilities/logger/index.js +18 -0
- package/dist/utilities/logger/index.js.map +1 -0
- package/dist/utilities/promptBuilder.d.ts +58 -0
- package/dist/utilities/promptBuilder.js +92 -0
- package/dist/utilities/promptBuilder.js.map +1 -0
- package/dist/utilities/reporter/LLMReporterInterface.d.ts +46 -0
- package/dist/utilities/reporter/LLMReporterInterface.js +3 -0
- package/dist/utilities/reporter/LLMReporterInterface.js.map +1 -0
- package/dist/utilities/reporter/index.d.ts +1 -0
- package/dist/utilities/reporter/index.js +18 -0
- package/dist/utilities/reporter/index.js.map +1 -0
- package/dist/utilities/schema/LLMSchema.d.ts +112 -0
- package/dist/utilities/schema/LLMSchema.js +223 -0
- package/dist/utilities/schema/LLMSchema.js.map +1 -0
- package/dist/utilities/schema/LLMSchema.typedefs.d.ts +55 -0
- package/dist/utilities/schema/LLMSchema.typedefs.js +3 -0
- package/dist/utilities/schema/LLMSchema.typedefs.js.map +1 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.d.ts +26 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js +32 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js.map +1 -0
- package/dist/utilities/schema/index.d.ts +2 -0
- package/dist/utilities/schema/index.js +19 -0
- package/dist/utilities/schema/index.js.map +1 -0
- package/dist/utilities/serializeError.d.ts +9 -0
- package/dist/utilities/serializeError.js +69 -0
- package/dist/utilities/serializeError.js.map +1 -0
- package/dist/utilities/tokenizer.d.ts +4 -0
- package/dist/utilities/tokenizer.js +14 -0
- package/dist/utilities/tokenizer.js.map +1 -0
- package/dist/utilities/tools/LLMTool.d.ts +5 -0
- package/dist/utilities/tools/LLMTool.js +10 -0
- package/dist/utilities/tools/LLMTool.js.map +1 -0
- package/dist/utilities/tools/index.d.ts +2 -0
- package/dist/utilities/tools/index.js +8 -0
- package/dist/utilities/tools/index.js.map +1 -0
- package/dist/utilities/tools/normalizeToolResult.d.ts +15 -0
- package/dist/utilities/tools/normalizeToolResult.js +18 -0
- package/dist/utilities/tools/normalizeToolResult.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1664 @@
|
|
|
1
|
+
import { type LLMReporterInterface } from '../../utilities/reporter';
|
|
2
|
+
import { OpenAIModelNames } from '../../providers/OpenAI/OpenAI.typedefs';
|
|
3
|
+
import { OpenAIAssistanceService, OpenAICompletionService, OpenAISpeechToTextService, OpenAITextToSpeechService } from './services';
|
|
4
|
+
/**
|
|
5
|
+
* Pricing and model info: https://platform.openai.com/docs/pricing?latest-pricing=standard
|
|
6
|
+
*/
|
|
7
|
+
export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
8
|
+
readonly "gpt-4.1": {
|
|
9
|
+
readonly name: OpenAIModelNames.GPT_4_1;
|
|
10
|
+
readonly limits: {
|
|
11
|
+
readonly maxInputTokens: 1047576;
|
|
12
|
+
readonly maxOutputTokens: 32768;
|
|
13
|
+
};
|
|
14
|
+
readonly config: {
|
|
15
|
+
readonly temperature: 0.2;
|
|
16
|
+
};
|
|
17
|
+
readonly pricing: {
|
|
18
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
19
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
20
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
21
|
+
readonly getPriceForAudioInput: () => number;
|
|
22
|
+
readonly getPriceForAudioOutput: () => number;
|
|
23
|
+
readonly currency: "USD";
|
|
24
|
+
};
|
|
25
|
+
readonly capabilities: {
|
|
26
|
+
readonly vision: true;
|
|
27
|
+
readonly tools: true;
|
|
28
|
+
readonly reasoning: false;
|
|
29
|
+
readonly webSearch: false;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly "gpt-4.1-mini": {
|
|
33
|
+
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
34
|
+
readonly limits: {
|
|
35
|
+
readonly maxInputTokens: 1047576;
|
|
36
|
+
readonly maxOutputTokens: 32768;
|
|
37
|
+
};
|
|
38
|
+
readonly config: {
|
|
39
|
+
readonly temperature: 0.2;
|
|
40
|
+
};
|
|
41
|
+
readonly pricing: {
|
|
42
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
43
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
44
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
45
|
+
readonly getPriceForAudioInput: () => number;
|
|
46
|
+
readonly getPriceForAudioOutput: () => number;
|
|
47
|
+
readonly currency: "USD";
|
|
48
|
+
};
|
|
49
|
+
readonly capabilities: {
|
|
50
|
+
readonly vision: true;
|
|
51
|
+
readonly tools: true;
|
|
52
|
+
readonly reasoning: false;
|
|
53
|
+
readonly webSearch: false;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly "gpt-4.1-nano": {
|
|
57
|
+
readonly name: OpenAIModelNames.GPT_4_1_NANO;
|
|
58
|
+
readonly limits: {
|
|
59
|
+
readonly maxInputTokens: 1047576;
|
|
60
|
+
readonly maxOutputTokens: 32768;
|
|
61
|
+
};
|
|
62
|
+
readonly config: {
|
|
63
|
+
readonly temperature: 0.2;
|
|
64
|
+
};
|
|
65
|
+
readonly pricing: {
|
|
66
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
67
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
68
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
69
|
+
readonly getPriceForAudioInput: () => number;
|
|
70
|
+
readonly getPriceForAudioOutput: () => number;
|
|
71
|
+
readonly currency: "USD";
|
|
72
|
+
};
|
|
73
|
+
readonly capabilities: {
|
|
74
|
+
readonly vision: true;
|
|
75
|
+
readonly tools: true;
|
|
76
|
+
readonly reasoning: false;
|
|
77
|
+
readonly webSearch: false;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly "gpt-5": {
|
|
81
|
+
readonly name: OpenAIModelNames.GPT_5;
|
|
82
|
+
readonly limits: {
|
|
83
|
+
readonly maxInputTokens: 400000;
|
|
84
|
+
readonly maxOutputTokens: 128000;
|
|
85
|
+
};
|
|
86
|
+
readonly config: {
|
|
87
|
+
readonly temperature: 1;
|
|
88
|
+
readonly reasoning_effort: "minimal";
|
|
89
|
+
readonly verbosity: "medium";
|
|
90
|
+
};
|
|
91
|
+
readonly pricing: {
|
|
92
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
93
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
94
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
95
|
+
readonly getPriceForAudioInput: () => number;
|
|
96
|
+
readonly getPriceForAudioOutput: () => number;
|
|
97
|
+
readonly currency: "USD";
|
|
98
|
+
};
|
|
99
|
+
readonly capabilities: {
|
|
100
|
+
readonly vision: true;
|
|
101
|
+
readonly tools: true;
|
|
102
|
+
readonly reasoning: true;
|
|
103
|
+
readonly webSearch: true;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly "gpt-5.1": {
|
|
107
|
+
readonly name: OpenAIModelNames.GPT_5_1;
|
|
108
|
+
readonly limits: {
|
|
109
|
+
readonly maxInputTokens: 400000;
|
|
110
|
+
readonly maxOutputTokens: 128000;
|
|
111
|
+
};
|
|
112
|
+
readonly config: {
|
|
113
|
+
readonly temperature: 1;
|
|
114
|
+
readonly reasoning_effort: "none";
|
|
115
|
+
readonly verbosity: "medium";
|
|
116
|
+
};
|
|
117
|
+
readonly pricing: {
|
|
118
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
119
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
120
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
121
|
+
readonly getPriceForAudioInput: () => number;
|
|
122
|
+
readonly getPriceForAudioOutput: () => number;
|
|
123
|
+
readonly currency: "USD";
|
|
124
|
+
};
|
|
125
|
+
readonly capabilities: {
|
|
126
|
+
readonly vision: true;
|
|
127
|
+
readonly tools: true;
|
|
128
|
+
readonly reasoning: true;
|
|
129
|
+
readonly webSearch: true;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
readonly "gpt-5.2": {
|
|
133
|
+
readonly name: OpenAIModelNames.GPT_5_2;
|
|
134
|
+
readonly limits: {
|
|
135
|
+
readonly maxInputTokens: 400000;
|
|
136
|
+
readonly maxOutputTokens: 128000;
|
|
137
|
+
};
|
|
138
|
+
readonly config: {
|
|
139
|
+
readonly temperature: 1;
|
|
140
|
+
readonly reasoning_effort: "none";
|
|
141
|
+
readonly verbosity: "medium";
|
|
142
|
+
};
|
|
143
|
+
readonly pricing: {
|
|
144
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
145
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
146
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
147
|
+
readonly getPriceForAudioInput: () => number;
|
|
148
|
+
readonly getPriceForAudioOutput: () => number;
|
|
149
|
+
readonly currency: "USD";
|
|
150
|
+
};
|
|
151
|
+
readonly capabilities: {
|
|
152
|
+
readonly vision: true;
|
|
153
|
+
readonly tools: true;
|
|
154
|
+
readonly reasoning: true;
|
|
155
|
+
readonly webSearch: true;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly "gpt-5.4": {
|
|
159
|
+
readonly name: OpenAIModelNames.GPT_5_4;
|
|
160
|
+
readonly limits: {
|
|
161
|
+
readonly maxInputTokens: 1050000;
|
|
162
|
+
readonly maxOutputTokens: 128000;
|
|
163
|
+
};
|
|
164
|
+
readonly config: {
|
|
165
|
+
readonly temperature: 1;
|
|
166
|
+
readonly reasoning_effort: "none";
|
|
167
|
+
readonly verbosity: "medium";
|
|
168
|
+
};
|
|
169
|
+
readonly pricing: {
|
|
170
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
171
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
172
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
173
|
+
readonly getPriceForAudioInput: () => number;
|
|
174
|
+
readonly getPriceForAudioOutput: () => number;
|
|
175
|
+
readonly currency: "USD";
|
|
176
|
+
};
|
|
177
|
+
readonly capabilities: {
|
|
178
|
+
readonly vision: true;
|
|
179
|
+
readonly tools: true;
|
|
180
|
+
readonly reasoning: true;
|
|
181
|
+
readonly webSearch: true;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly "gpt-5-mini": {
|
|
185
|
+
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
186
|
+
readonly limits: {
|
|
187
|
+
readonly maxInputTokens: 400000;
|
|
188
|
+
readonly maxOutputTokens: 128000;
|
|
189
|
+
};
|
|
190
|
+
readonly config: {
|
|
191
|
+
readonly temperature: 1;
|
|
192
|
+
readonly reasoning_effort: "minimal";
|
|
193
|
+
readonly verbosity: "medium";
|
|
194
|
+
};
|
|
195
|
+
readonly pricing: {
|
|
196
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
197
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
198
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
199
|
+
readonly getPriceForAudioInput: () => number;
|
|
200
|
+
readonly getPriceForAudioOutput: () => number;
|
|
201
|
+
readonly currency: "USD";
|
|
202
|
+
};
|
|
203
|
+
readonly capabilities: {
|
|
204
|
+
readonly vision: true;
|
|
205
|
+
readonly tools: true;
|
|
206
|
+
readonly reasoning: true;
|
|
207
|
+
readonly webSearch: true;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly "gpt-5-nano": {
|
|
211
|
+
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
212
|
+
readonly limits: {
|
|
213
|
+
readonly maxInputTokens: 400000;
|
|
214
|
+
readonly maxOutputTokens: 128000;
|
|
215
|
+
};
|
|
216
|
+
readonly config: {
|
|
217
|
+
readonly temperature: 1;
|
|
218
|
+
readonly reasoning_effort: "minimal";
|
|
219
|
+
readonly verbosity: "medium";
|
|
220
|
+
};
|
|
221
|
+
readonly pricing: {
|
|
222
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
223
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
224
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
225
|
+
readonly getPriceForAudioInput: () => number;
|
|
226
|
+
readonly getPriceForAudioOutput: () => number;
|
|
227
|
+
readonly currency: "USD";
|
|
228
|
+
};
|
|
229
|
+
readonly capabilities: {
|
|
230
|
+
readonly vision: false;
|
|
231
|
+
readonly tools: true;
|
|
232
|
+
readonly reasoning: true;
|
|
233
|
+
readonly webSearch: true;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly "gpt-4o-transcribe": {
|
|
237
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
238
|
+
readonly limits: {
|
|
239
|
+
readonly maxInputTokens: 16000;
|
|
240
|
+
readonly maxOutputTokens: 2000;
|
|
241
|
+
};
|
|
242
|
+
readonly config: {
|
|
243
|
+
readonly temperature: 0.2;
|
|
244
|
+
};
|
|
245
|
+
readonly pricing: {
|
|
246
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
247
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
248
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
249
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
250
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
251
|
+
readonly getPriceForAudioOutput: () => number;
|
|
252
|
+
readonly currency: "USD";
|
|
253
|
+
};
|
|
254
|
+
readonly capabilities: {
|
|
255
|
+
readonly vision: false;
|
|
256
|
+
readonly tools: false;
|
|
257
|
+
readonly reasoning: false;
|
|
258
|
+
readonly webSearch: false;
|
|
259
|
+
readonly stt: true;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly "gpt-4o-mini-transcribe": {
|
|
263
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
264
|
+
readonly limits: {
|
|
265
|
+
readonly maxInputTokens: 16000;
|
|
266
|
+
readonly maxOutputTokens: 2000;
|
|
267
|
+
};
|
|
268
|
+
readonly config: {
|
|
269
|
+
readonly temperature: 0.2;
|
|
270
|
+
};
|
|
271
|
+
readonly pricing: {
|
|
272
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
273
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
274
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
275
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
276
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
277
|
+
readonly getPriceForAudioOutput: () => number;
|
|
278
|
+
readonly currency: "USD";
|
|
279
|
+
};
|
|
280
|
+
readonly capabilities: {
|
|
281
|
+
readonly vision: false;
|
|
282
|
+
readonly tools: false;
|
|
283
|
+
readonly reasoning: false;
|
|
284
|
+
readonly webSearch: false;
|
|
285
|
+
readonly stt: true;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly "gpt-4o-mini-tts": {
|
|
289
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
290
|
+
readonly limits: {
|
|
291
|
+
readonly maxInputTokens: 2000;
|
|
292
|
+
readonly maxOutputTokens: number;
|
|
293
|
+
};
|
|
294
|
+
readonly config: {
|
|
295
|
+
readonly temperature: 0.2;
|
|
296
|
+
};
|
|
297
|
+
readonly pricing: {
|
|
298
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
299
|
+
readonly getPriceForTextOutput: () => number;
|
|
300
|
+
readonly getPriceForAudioInput: () => number;
|
|
301
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
302
|
+
readonly currency: "USD";
|
|
303
|
+
};
|
|
304
|
+
readonly capabilities: {
|
|
305
|
+
readonly vision: false;
|
|
306
|
+
readonly tools: false;
|
|
307
|
+
readonly reasoning: false;
|
|
308
|
+
readonly webSearch: false;
|
|
309
|
+
readonly tts: true;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly "tts-1": {
|
|
313
|
+
readonly name: OpenAIModelNames.TTS_1;
|
|
314
|
+
readonly limits: {
|
|
315
|
+
readonly maxInputTokens: 2000;
|
|
316
|
+
readonly maxOutputTokens: number;
|
|
317
|
+
};
|
|
318
|
+
readonly config: {
|
|
319
|
+
readonly temperature: 0.2;
|
|
320
|
+
};
|
|
321
|
+
readonly pricing: {
|
|
322
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
323
|
+
readonly getPriceForTextOutput: () => number;
|
|
324
|
+
readonly getPriceForAudioInput: () => number;
|
|
325
|
+
readonly getPriceForAudioOutput: () => number;
|
|
326
|
+
readonly currency: "USD";
|
|
327
|
+
};
|
|
328
|
+
readonly capabilities: {
|
|
329
|
+
readonly vision: false;
|
|
330
|
+
readonly tools: false;
|
|
331
|
+
readonly reasoning: false;
|
|
332
|
+
readonly webSearch: false;
|
|
333
|
+
readonly tts: true;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
export declare const OPEN_AI_MODELS: {
|
|
338
|
+
readonly completion: Pick<{
|
|
339
|
+
readonly "gpt-4.1": {
|
|
340
|
+
readonly name: OpenAIModelNames.GPT_4_1;
|
|
341
|
+
readonly limits: {
|
|
342
|
+
readonly maxInputTokens: 1047576;
|
|
343
|
+
readonly maxOutputTokens: 32768;
|
|
344
|
+
};
|
|
345
|
+
readonly config: {
|
|
346
|
+
readonly temperature: 0.2;
|
|
347
|
+
};
|
|
348
|
+
readonly pricing: {
|
|
349
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
350
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
351
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
352
|
+
readonly getPriceForAudioInput: () => number;
|
|
353
|
+
readonly getPriceForAudioOutput: () => number;
|
|
354
|
+
readonly currency: "USD";
|
|
355
|
+
};
|
|
356
|
+
readonly capabilities: {
|
|
357
|
+
readonly vision: true;
|
|
358
|
+
readonly tools: true;
|
|
359
|
+
readonly reasoning: false;
|
|
360
|
+
readonly webSearch: false;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly "gpt-4.1-mini": {
|
|
364
|
+
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
365
|
+
readonly limits: {
|
|
366
|
+
readonly maxInputTokens: 1047576;
|
|
367
|
+
readonly maxOutputTokens: 32768;
|
|
368
|
+
};
|
|
369
|
+
readonly config: {
|
|
370
|
+
readonly temperature: 0.2;
|
|
371
|
+
};
|
|
372
|
+
readonly pricing: {
|
|
373
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
374
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
375
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
376
|
+
readonly getPriceForAudioInput: () => number;
|
|
377
|
+
readonly getPriceForAudioOutput: () => number;
|
|
378
|
+
readonly currency: "USD";
|
|
379
|
+
};
|
|
380
|
+
readonly capabilities: {
|
|
381
|
+
readonly vision: true;
|
|
382
|
+
readonly tools: true;
|
|
383
|
+
readonly reasoning: false;
|
|
384
|
+
readonly webSearch: false;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
readonly "gpt-4.1-nano": {
|
|
388
|
+
readonly name: OpenAIModelNames.GPT_4_1_NANO;
|
|
389
|
+
readonly limits: {
|
|
390
|
+
readonly maxInputTokens: 1047576;
|
|
391
|
+
readonly maxOutputTokens: 32768;
|
|
392
|
+
};
|
|
393
|
+
readonly config: {
|
|
394
|
+
readonly temperature: 0.2;
|
|
395
|
+
};
|
|
396
|
+
readonly pricing: {
|
|
397
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
398
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
399
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
400
|
+
readonly getPriceForAudioInput: () => number;
|
|
401
|
+
readonly getPriceForAudioOutput: () => number;
|
|
402
|
+
readonly currency: "USD";
|
|
403
|
+
};
|
|
404
|
+
readonly capabilities: {
|
|
405
|
+
readonly vision: true;
|
|
406
|
+
readonly tools: true;
|
|
407
|
+
readonly reasoning: false;
|
|
408
|
+
readonly webSearch: false;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly "gpt-5": {
|
|
412
|
+
readonly name: OpenAIModelNames.GPT_5;
|
|
413
|
+
readonly limits: {
|
|
414
|
+
readonly maxInputTokens: 400000;
|
|
415
|
+
readonly maxOutputTokens: 128000;
|
|
416
|
+
};
|
|
417
|
+
readonly config: {
|
|
418
|
+
readonly temperature: 1;
|
|
419
|
+
readonly reasoning_effort: "minimal";
|
|
420
|
+
readonly verbosity: "medium";
|
|
421
|
+
};
|
|
422
|
+
readonly pricing: {
|
|
423
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
424
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
425
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
426
|
+
readonly getPriceForAudioInput: () => number;
|
|
427
|
+
readonly getPriceForAudioOutput: () => number;
|
|
428
|
+
readonly currency: "USD";
|
|
429
|
+
};
|
|
430
|
+
readonly capabilities: {
|
|
431
|
+
readonly vision: true;
|
|
432
|
+
readonly tools: true;
|
|
433
|
+
readonly reasoning: true;
|
|
434
|
+
readonly webSearch: true;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
readonly "gpt-5.1": {
|
|
438
|
+
readonly name: OpenAIModelNames.GPT_5_1;
|
|
439
|
+
readonly limits: {
|
|
440
|
+
readonly maxInputTokens: 400000;
|
|
441
|
+
readonly maxOutputTokens: 128000;
|
|
442
|
+
};
|
|
443
|
+
readonly config: {
|
|
444
|
+
readonly temperature: 1;
|
|
445
|
+
readonly reasoning_effort: "none";
|
|
446
|
+
readonly verbosity: "medium";
|
|
447
|
+
};
|
|
448
|
+
readonly pricing: {
|
|
449
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
450
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
451
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
452
|
+
readonly getPriceForAudioInput: () => number;
|
|
453
|
+
readonly getPriceForAudioOutput: () => number;
|
|
454
|
+
readonly currency: "USD";
|
|
455
|
+
};
|
|
456
|
+
readonly capabilities: {
|
|
457
|
+
readonly vision: true;
|
|
458
|
+
readonly tools: true;
|
|
459
|
+
readonly reasoning: true;
|
|
460
|
+
readonly webSearch: true;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly "gpt-5.2": {
|
|
464
|
+
readonly name: OpenAIModelNames.GPT_5_2;
|
|
465
|
+
readonly limits: {
|
|
466
|
+
readonly maxInputTokens: 400000;
|
|
467
|
+
readonly maxOutputTokens: 128000;
|
|
468
|
+
};
|
|
469
|
+
readonly config: {
|
|
470
|
+
readonly temperature: 1;
|
|
471
|
+
readonly reasoning_effort: "none";
|
|
472
|
+
readonly verbosity: "medium";
|
|
473
|
+
};
|
|
474
|
+
readonly pricing: {
|
|
475
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
476
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
477
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
478
|
+
readonly getPriceForAudioInput: () => number;
|
|
479
|
+
readonly getPriceForAudioOutput: () => number;
|
|
480
|
+
readonly currency: "USD";
|
|
481
|
+
};
|
|
482
|
+
readonly capabilities: {
|
|
483
|
+
readonly vision: true;
|
|
484
|
+
readonly tools: true;
|
|
485
|
+
readonly reasoning: true;
|
|
486
|
+
readonly webSearch: true;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
readonly "gpt-5.4": {
|
|
490
|
+
readonly name: OpenAIModelNames.GPT_5_4;
|
|
491
|
+
readonly limits: {
|
|
492
|
+
readonly maxInputTokens: 1050000;
|
|
493
|
+
readonly maxOutputTokens: 128000;
|
|
494
|
+
};
|
|
495
|
+
readonly config: {
|
|
496
|
+
readonly temperature: 1;
|
|
497
|
+
readonly reasoning_effort: "none";
|
|
498
|
+
readonly verbosity: "medium";
|
|
499
|
+
};
|
|
500
|
+
readonly pricing: {
|
|
501
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
502
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
503
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
504
|
+
readonly getPriceForAudioInput: () => number;
|
|
505
|
+
readonly getPriceForAudioOutput: () => number;
|
|
506
|
+
readonly currency: "USD";
|
|
507
|
+
};
|
|
508
|
+
readonly capabilities: {
|
|
509
|
+
readonly vision: true;
|
|
510
|
+
readonly tools: true;
|
|
511
|
+
readonly reasoning: true;
|
|
512
|
+
readonly webSearch: true;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly "gpt-5-mini": {
|
|
516
|
+
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
517
|
+
readonly limits: {
|
|
518
|
+
readonly maxInputTokens: 400000;
|
|
519
|
+
readonly maxOutputTokens: 128000;
|
|
520
|
+
};
|
|
521
|
+
readonly config: {
|
|
522
|
+
readonly temperature: 1;
|
|
523
|
+
readonly reasoning_effort: "minimal";
|
|
524
|
+
readonly verbosity: "medium";
|
|
525
|
+
};
|
|
526
|
+
readonly pricing: {
|
|
527
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
528
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
529
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
530
|
+
readonly getPriceForAudioInput: () => number;
|
|
531
|
+
readonly getPriceForAudioOutput: () => number;
|
|
532
|
+
readonly currency: "USD";
|
|
533
|
+
};
|
|
534
|
+
readonly capabilities: {
|
|
535
|
+
readonly vision: true;
|
|
536
|
+
readonly tools: true;
|
|
537
|
+
readonly reasoning: true;
|
|
538
|
+
readonly webSearch: true;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly "gpt-5-nano": {
|
|
542
|
+
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
543
|
+
readonly limits: {
|
|
544
|
+
readonly maxInputTokens: 400000;
|
|
545
|
+
readonly maxOutputTokens: 128000;
|
|
546
|
+
};
|
|
547
|
+
readonly config: {
|
|
548
|
+
readonly temperature: 1;
|
|
549
|
+
readonly reasoning_effort: "minimal";
|
|
550
|
+
readonly verbosity: "medium";
|
|
551
|
+
};
|
|
552
|
+
readonly pricing: {
|
|
553
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
554
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
555
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
556
|
+
readonly getPriceForAudioInput: () => number;
|
|
557
|
+
readonly getPriceForAudioOutput: () => number;
|
|
558
|
+
readonly currency: "USD";
|
|
559
|
+
};
|
|
560
|
+
readonly capabilities: {
|
|
561
|
+
readonly vision: false;
|
|
562
|
+
readonly tools: true;
|
|
563
|
+
readonly reasoning: true;
|
|
564
|
+
readonly webSearch: true;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly "gpt-4o-transcribe": {
|
|
568
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
569
|
+
readonly limits: {
|
|
570
|
+
readonly maxInputTokens: 16000;
|
|
571
|
+
readonly maxOutputTokens: 2000;
|
|
572
|
+
};
|
|
573
|
+
readonly config: {
|
|
574
|
+
readonly temperature: 0.2;
|
|
575
|
+
};
|
|
576
|
+
readonly pricing: {
|
|
577
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
578
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
579
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
580
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
581
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
582
|
+
readonly getPriceForAudioOutput: () => number;
|
|
583
|
+
readonly currency: "USD";
|
|
584
|
+
};
|
|
585
|
+
readonly capabilities: {
|
|
586
|
+
readonly vision: false;
|
|
587
|
+
readonly tools: false;
|
|
588
|
+
readonly reasoning: false;
|
|
589
|
+
readonly webSearch: false;
|
|
590
|
+
readonly stt: true;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
readonly "gpt-4o-mini-transcribe": {
|
|
594
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
595
|
+
readonly limits: {
|
|
596
|
+
readonly maxInputTokens: 16000;
|
|
597
|
+
readonly maxOutputTokens: 2000;
|
|
598
|
+
};
|
|
599
|
+
readonly config: {
|
|
600
|
+
readonly temperature: 0.2;
|
|
601
|
+
};
|
|
602
|
+
readonly pricing: {
|
|
603
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
604
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
605
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
606
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
607
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
608
|
+
readonly getPriceForAudioOutput: () => number;
|
|
609
|
+
readonly currency: "USD";
|
|
610
|
+
};
|
|
611
|
+
readonly capabilities: {
|
|
612
|
+
readonly vision: false;
|
|
613
|
+
readonly tools: false;
|
|
614
|
+
readonly reasoning: false;
|
|
615
|
+
readonly webSearch: false;
|
|
616
|
+
readonly stt: true;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly "gpt-4o-mini-tts": {
|
|
620
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
621
|
+
readonly limits: {
|
|
622
|
+
readonly maxInputTokens: 2000;
|
|
623
|
+
readonly maxOutputTokens: number;
|
|
624
|
+
};
|
|
625
|
+
readonly config: {
|
|
626
|
+
readonly temperature: 0.2;
|
|
627
|
+
};
|
|
628
|
+
readonly pricing: {
|
|
629
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
630
|
+
readonly getPriceForTextOutput: () => number;
|
|
631
|
+
readonly getPriceForAudioInput: () => number;
|
|
632
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
633
|
+
readonly currency: "USD";
|
|
634
|
+
};
|
|
635
|
+
readonly capabilities: {
|
|
636
|
+
readonly vision: false;
|
|
637
|
+
readonly tools: false;
|
|
638
|
+
readonly reasoning: false;
|
|
639
|
+
readonly webSearch: false;
|
|
640
|
+
readonly tts: true;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly "tts-1": {
|
|
644
|
+
readonly name: OpenAIModelNames.TTS_1;
|
|
645
|
+
readonly limits: {
|
|
646
|
+
readonly maxInputTokens: 2000;
|
|
647
|
+
readonly maxOutputTokens: number;
|
|
648
|
+
};
|
|
649
|
+
readonly config: {
|
|
650
|
+
readonly temperature: 0.2;
|
|
651
|
+
};
|
|
652
|
+
readonly pricing: {
|
|
653
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
654
|
+
readonly getPriceForTextOutput: () => number;
|
|
655
|
+
readonly getPriceForAudioInput: () => number;
|
|
656
|
+
readonly getPriceForAudioOutput: () => number;
|
|
657
|
+
readonly currency: "USD";
|
|
658
|
+
};
|
|
659
|
+
readonly capabilities: {
|
|
660
|
+
readonly vision: false;
|
|
661
|
+
readonly tools: false;
|
|
662
|
+
readonly reasoning: false;
|
|
663
|
+
readonly webSearch: false;
|
|
664
|
+
readonly tts: true;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
}, OpenAIModelNames.GPT_4_1 | OpenAIModelNames.GPT_4_1_MINI | OpenAIModelNames.GPT_4_1_NANO | OpenAIModelNames.GPT_5 | OpenAIModelNames.GPT_5_1 | OpenAIModelNames.GPT_5_2 | OpenAIModelNames.GPT_5_4 | OpenAIModelNames.GPT_5_MINI | OpenAIModelNames.GPT_5_NANO>;
|
|
668
|
+
readonly assistance: Pick<{
|
|
669
|
+
readonly "gpt-4.1": {
|
|
670
|
+
readonly name: OpenAIModelNames.GPT_4_1;
|
|
671
|
+
readonly limits: {
|
|
672
|
+
readonly maxInputTokens: 1047576;
|
|
673
|
+
readonly maxOutputTokens: 32768;
|
|
674
|
+
};
|
|
675
|
+
readonly config: {
|
|
676
|
+
readonly temperature: 0.2;
|
|
677
|
+
};
|
|
678
|
+
readonly pricing: {
|
|
679
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
680
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
681
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
682
|
+
readonly getPriceForAudioInput: () => number;
|
|
683
|
+
readonly getPriceForAudioOutput: () => number;
|
|
684
|
+
readonly currency: "USD";
|
|
685
|
+
};
|
|
686
|
+
readonly capabilities: {
|
|
687
|
+
readonly vision: true;
|
|
688
|
+
readonly tools: true;
|
|
689
|
+
readonly reasoning: false;
|
|
690
|
+
readonly webSearch: false;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
readonly "gpt-4.1-mini": {
|
|
694
|
+
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
695
|
+
readonly limits: {
|
|
696
|
+
readonly maxInputTokens: 1047576;
|
|
697
|
+
readonly maxOutputTokens: 32768;
|
|
698
|
+
};
|
|
699
|
+
readonly config: {
|
|
700
|
+
readonly temperature: 0.2;
|
|
701
|
+
};
|
|
702
|
+
readonly pricing: {
|
|
703
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
704
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
705
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
706
|
+
readonly getPriceForAudioInput: () => number;
|
|
707
|
+
readonly getPriceForAudioOutput: () => number;
|
|
708
|
+
readonly currency: "USD";
|
|
709
|
+
};
|
|
710
|
+
readonly capabilities: {
|
|
711
|
+
readonly vision: true;
|
|
712
|
+
readonly tools: true;
|
|
713
|
+
readonly reasoning: false;
|
|
714
|
+
readonly webSearch: false;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
readonly "gpt-4.1-nano": {
|
|
718
|
+
readonly name: OpenAIModelNames.GPT_4_1_NANO;
|
|
719
|
+
readonly limits: {
|
|
720
|
+
readonly maxInputTokens: 1047576;
|
|
721
|
+
readonly maxOutputTokens: 32768;
|
|
722
|
+
};
|
|
723
|
+
readonly config: {
|
|
724
|
+
readonly temperature: 0.2;
|
|
725
|
+
};
|
|
726
|
+
readonly pricing: {
|
|
727
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
728
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
729
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
730
|
+
readonly getPriceForAudioInput: () => number;
|
|
731
|
+
readonly getPriceForAudioOutput: () => number;
|
|
732
|
+
readonly currency: "USD";
|
|
733
|
+
};
|
|
734
|
+
readonly capabilities: {
|
|
735
|
+
readonly vision: true;
|
|
736
|
+
readonly tools: true;
|
|
737
|
+
readonly reasoning: false;
|
|
738
|
+
readonly webSearch: false;
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
readonly "gpt-5": {
|
|
742
|
+
readonly name: OpenAIModelNames.GPT_5;
|
|
743
|
+
readonly limits: {
|
|
744
|
+
readonly maxInputTokens: 400000;
|
|
745
|
+
readonly maxOutputTokens: 128000;
|
|
746
|
+
};
|
|
747
|
+
readonly config: {
|
|
748
|
+
readonly temperature: 1;
|
|
749
|
+
readonly reasoning_effort: "minimal";
|
|
750
|
+
readonly verbosity: "medium";
|
|
751
|
+
};
|
|
752
|
+
readonly pricing: {
|
|
753
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
754
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
755
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
756
|
+
readonly getPriceForAudioInput: () => number;
|
|
757
|
+
readonly getPriceForAudioOutput: () => number;
|
|
758
|
+
readonly currency: "USD";
|
|
759
|
+
};
|
|
760
|
+
readonly capabilities: {
|
|
761
|
+
readonly vision: true;
|
|
762
|
+
readonly tools: true;
|
|
763
|
+
readonly reasoning: true;
|
|
764
|
+
readonly webSearch: true;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
readonly "gpt-5.1": {
|
|
768
|
+
readonly name: OpenAIModelNames.GPT_5_1;
|
|
769
|
+
readonly limits: {
|
|
770
|
+
readonly maxInputTokens: 400000;
|
|
771
|
+
readonly maxOutputTokens: 128000;
|
|
772
|
+
};
|
|
773
|
+
readonly config: {
|
|
774
|
+
readonly temperature: 1;
|
|
775
|
+
readonly reasoning_effort: "none";
|
|
776
|
+
readonly verbosity: "medium";
|
|
777
|
+
};
|
|
778
|
+
readonly pricing: {
|
|
779
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
780
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
781
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
782
|
+
readonly getPriceForAudioInput: () => number;
|
|
783
|
+
readonly getPriceForAudioOutput: () => number;
|
|
784
|
+
readonly currency: "USD";
|
|
785
|
+
};
|
|
786
|
+
readonly capabilities: {
|
|
787
|
+
readonly vision: true;
|
|
788
|
+
readonly tools: true;
|
|
789
|
+
readonly reasoning: true;
|
|
790
|
+
readonly webSearch: true;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
readonly "gpt-5.2": {
|
|
794
|
+
readonly name: OpenAIModelNames.GPT_5_2;
|
|
795
|
+
readonly limits: {
|
|
796
|
+
readonly maxInputTokens: 400000;
|
|
797
|
+
readonly maxOutputTokens: 128000;
|
|
798
|
+
};
|
|
799
|
+
readonly config: {
|
|
800
|
+
readonly temperature: 1;
|
|
801
|
+
readonly reasoning_effort: "none";
|
|
802
|
+
readonly verbosity: "medium";
|
|
803
|
+
};
|
|
804
|
+
readonly pricing: {
|
|
805
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
806
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
807
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
808
|
+
readonly getPriceForAudioInput: () => number;
|
|
809
|
+
readonly getPriceForAudioOutput: () => number;
|
|
810
|
+
readonly currency: "USD";
|
|
811
|
+
};
|
|
812
|
+
readonly capabilities: {
|
|
813
|
+
readonly vision: true;
|
|
814
|
+
readonly tools: true;
|
|
815
|
+
readonly reasoning: true;
|
|
816
|
+
readonly webSearch: true;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
readonly "gpt-5.4": {
|
|
820
|
+
readonly name: OpenAIModelNames.GPT_5_4;
|
|
821
|
+
readonly limits: {
|
|
822
|
+
readonly maxInputTokens: 1050000;
|
|
823
|
+
readonly maxOutputTokens: 128000;
|
|
824
|
+
};
|
|
825
|
+
readonly config: {
|
|
826
|
+
readonly temperature: 1;
|
|
827
|
+
readonly reasoning_effort: "none";
|
|
828
|
+
readonly verbosity: "medium";
|
|
829
|
+
};
|
|
830
|
+
readonly pricing: {
|
|
831
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
832
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
833
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
834
|
+
readonly getPriceForAudioInput: () => number;
|
|
835
|
+
readonly getPriceForAudioOutput: () => number;
|
|
836
|
+
readonly currency: "USD";
|
|
837
|
+
};
|
|
838
|
+
readonly capabilities: {
|
|
839
|
+
readonly vision: true;
|
|
840
|
+
readonly tools: true;
|
|
841
|
+
readonly reasoning: true;
|
|
842
|
+
readonly webSearch: true;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
readonly "gpt-5-mini": {
|
|
846
|
+
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
847
|
+
readonly limits: {
|
|
848
|
+
readonly maxInputTokens: 400000;
|
|
849
|
+
readonly maxOutputTokens: 128000;
|
|
850
|
+
};
|
|
851
|
+
readonly config: {
|
|
852
|
+
readonly temperature: 1;
|
|
853
|
+
readonly reasoning_effort: "minimal";
|
|
854
|
+
readonly verbosity: "medium";
|
|
855
|
+
};
|
|
856
|
+
readonly pricing: {
|
|
857
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
858
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
859
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
860
|
+
readonly getPriceForAudioInput: () => number;
|
|
861
|
+
readonly getPriceForAudioOutput: () => number;
|
|
862
|
+
readonly currency: "USD";
|
|
863
|
+
};
|
|
864
|
+
readonly capabilities: {
|
|
865
|
+
readonly vision: true;
|
|
866
|
+
readonly tools: true;
|
|
867
|
+
readonly reasoning: true;
|
|
868
|
+
readonly webSearch: true;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly "gpt-5-nano": {
|
|
872
|
+
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
873
|
+
readonly limits: {
|
|
874
|
+
readonly maxInputTokens: 400000;
|
|
875
|
+
readonly maxOutputTokens: 128000;
|
|
876
|
+
};
|
|
877
|
+
readonly config: {
|
|
878
|
+
readonly temperature: 1;
|
|
879
|
+
readonly reasoning_effort: "minimal";
|
|
880
|
+
readonly verbosity: "medium";
|
|
881
|
+
};
|
|
882
|
+
readonly pricing: {
|
|
883
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
884
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
885
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
886
|
+
readonly getPriceForAudioInput: () => number;
|
|
887
|
+
readonly getPriceForAudioOutput: () => number;
|
|
888
|
+
readonly currency: "USD";
|
|
889
|
+
};
|
|
890
|
+
readonly capabilities: {
|
|
891
|
+
readonly vision: false;
|
|
892
|
+
readonly tools: true;
|
|
893
|
+
readonly reasoning: true;
|
|
894
|
+
readonly webSearch: true;
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
readonly "gpt-4o-transcribe": {
|
|
898
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
899
|
+
readonly limits: {
|
|
900
|
+
readonly maxInputTokens: 16000;
|
|
901
|
+
readonly maxOutputTokens: 2000;
|
|
902
|
+
};
|
|
903
|
+
readonly config: {
|
|
904
|
+
readonly temperature: 0.2;
|
|
905
|
+
};
|
|
906
|
+
readonly pricing: {
|
|
907
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
908
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
909
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
910
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
911
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
912
|
+
readonly getPriceForAudioOutput: () => number;
|
|
913
|
+
readonly currency: "USD";
|
|
914
|
+
};
|
|
915
|
+
readonly capabilities: {
|
|
916
|
+
readonly vision: false;
|
|
917
|
+
readonly tools: false;
|
|
918
|
+
readonly reasoning: false;
|
|
919
|
+
readonly webSearch: false;
|
|
920
|
+
readonly stt: true;
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
readonly "gpt-4o-mini-transcribe": {
|
|
924
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
925
|
+
readonly limits: {
|
|
926
|
+
readonly maxInputTokens: 16000;
|
|
927
|
+
readonly maxOutputTokens: 2000;
|
|
928
|
+
};
|
|
929
|
+
readonly config: {
|
|
930
|
+
readonly temperature: 0.2;
|
|
931
|
+
};
|
|
932
|
+
readonly pricing: {
|
|
933
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
934
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
935
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
936
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
937
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
938
|
+
readonly getPriceForAudioOutput: () => number;
|
|
939
|
+
readonly currency: "USD";
|
|
940
|
+
};
|
|
941
|
+
readonly capabilities: {
|
|
942
|
+
readonly vision: false;
|
|
943
|
+
readonly tools: false;
|
|
944
|
+
readonly reasoning: false;
|
|
945
|
+
readonly webSearch: false;
|
|
946
|
+
readonly stt: true;
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
readonly "gpt-4o-mini-tts": {
|
|
950
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
951
|
+
readonly limits: {
|
|
952
|
+
readonly maxInputTokens: 2000;
|
|
953
|
+
readonly maxOutputTokens: number;
|
|
954
|
+
};
|
|
955
|
+
readonly config: {
|
|
956
|
+
readonly temperature: 0.2;
|
|
957
|
+
};
|
|
958
|
+
readonly pricing: {
|
|
959
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
960
|
+
readonly getPriceForTextOutput: () => number;
|
|
961
|
+
readonly getPriceForAudioInput: () => number;
|
|
962
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
963
|
+
readonly currency: "USD";
|
|
964
|
+
};
|
|
965
|
+
readonly capabilities: {
|
|
966
|
+
readonly vision: false;
|
|
967
|
+
readonly tools: false;
|
|
968
|
+
readonly reasoning: false;
|
|
969
|
+
readonly webSearch: false;
|
|
970
|
+
readonly tts: true;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
readonly "tts-1": {
|
|
974
|
+
readonly name: OpenAIModelNames.TTS_1;
|
|
975
|
+
readonly limits: {
|
|
976
|
+
readonly maxInputTokens: 2000;
|
|
977
|
+
readonly maxOutputTokens: number;
|
|
978
|
+
};
|
|
979
|
+
readonly config: {
|
|
980
|
+
readonly temperature: 0.2;
|
|
981
|
+
};
|
|
982
|
+
readonly pricing: {
|
|
983
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
984
|
+
readonly getPriceForTextOutput: () => number;
|
|
985
|
+
readonly getPriceForAudioInput: () => number;
|
|
986
|
+
readonly getPriceForAudioOutput: () => number;
|
|
987
|
+
readonly currency: "USD";
|
|
988
|
+
};
|
|
989
|
+
readonly capabilities: {
|
|
990
|
+
readonly vision: false;
|
|
991
|
+
readonly tools: false;
|
|
992
|
+
readonly reasoning: false;
|
|
993
|
+
readonly webSearch: false;
|
|
994
|
+
readonly tts: true;
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
}, OpenAIModelNames.GPT_4_1 | OpenAIModelNames.GPT_4_1_MINI | OpenAIModelNames.GPT_4_1_NANO | OpenAIModelNames.GPT_5 | OpenAIModelNames.GPT_5_1 | OpenAIModelNames.GPT_5_2 | OpenAIModelNames.GPT_5_4 | OpenAIModelNames.GPT_5_MINI | OpenAIModelNames.GPT_5_NANO>;
|
|
998
|
+
readonly text_to_speech: Pick<{
|
|
999
|
+
readonly "gpt-4.1": {
|
|
1000
|
+
readonly name: OpenAIModelNames.GPT_4_1;
|
|
1001
|
+
readonly limits: {
|
|
1002
|
+
readonly maxInputTokens: 1047576;
|
|
1003
|
+
readonly maxOutputTokens: 32768;
|
|
1004
|
+
};
|
|
1005
|
+
readonly config: {
|
|
1006
|
+
readonly temperature: 0.2;
|
|
1007
|
+
};
|
|
1008
|
+
readonly pricing: {
|
|
1009
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1010
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1011
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1012
|
+
readonly getPriceForAudioInput: () => number;
|
|
1013
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1014
|
+
readonly currency: "USD";
|
|
1015
|
+
};
|
|
1016
|
+
readonly capabilities: {
|
|
1017
|
+
readonly vision: true;
|
|
1018
|
+
readonly tools: true;
|
|
1019
|
+
readonly reasoning: false;
|
|
1020
|
+
readonly webSearch: false;
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
readonly "gpt-4.1-mini": {
|
|
1024
|
+
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
1025
|
+
readonly limits: {
|
|
1026
|
+
readonly maxInputTokens: 1047576;
|
|
1027
|
+
readonly maxOutputTokens: 32768;
|
|
1028
|
+
};
|
|
1029
|
+
readonly config: {
|
|
1030
|
+
readonly temperature: 0.2;
|
|
1031
|
+
};
|
|
1032
|
+
readonly pricing: {
|
|
1033
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1034
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1035
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1036
|
+
readonly getPriceForAudioInput: () => number;
|
|
1037
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1038
|
+
readonly currency: "USD";
|
|
1039
|
+
};
|
|
1040
|
+
readonly capabilities: {
|
|
1041
|
+
readonly vision: true;
|
|
1042
|
+
readonly tools: true;
|
|
1043
|
+
readonly reasoning: false;
|
|
1044
|
+
readonly webSearch: false;
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
readonly "gpt-4.1-nano": {
|
|
1048
|
+
readonly name: OpenAIModelNames.GPT_4_1_NANO;
|
|
1049
|
+
readonly limits: {
|
|
1050
|
+
readonly maxInputTokens: 1047576;
|
|
1051
|
+
readonly maxOutputTokens: 32768;
|
|
1052
|
+
};
|
|
1053
|
+
readonly config: {
|
|
1054
|
+
readonly temperature: 0.2;
|
|
1055
|
+
};
|
|
1056
|
+
readonly pricing: {
|
|
1057
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1058
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1059
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1060
|
+
readonly getPriceForAudioInput: () => number;
|
|
1061
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1062
|
+
readonly currency: "USD";
|
|
1063
|
+
};
|
|
1064
|
+
readonly capabilities: {
|
|
1065
|
+
readonly vision: true;
|
|
1066
|
+
readonly tools: true;
|
|
1067
|
+
readonly reasoning: false;
|
|
1068
|
+
readonly webSearch: false;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
readonly "gpt-5": {
|
|
1072
|
+
readonly name: OpenAIModelNames.GPT_5;
|
|
1073
|
+
readonly limits: {
|
|
1074
|
+
readonly maxInputTokens: 400000;
|
|
1075
|
+
readonly maxOutputTokens: 128000;
|
|
1076
|
+
};
|
|
1077
|
+
readonly config: {
|
|
1078
|
+
readonly temperature: 1;
|
|
1079
|
+
readonly reasoning_effort: "minimal";
|
|
1080
|
+
readonly verbosity: "medium";
|
|
1081
|
+
};
|
|
1082
|
+
readonly pricing: {
|
|
1083
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1084
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1085
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1086
|
+
readonly getPriceForAudioInput: () => number;
|
|
1087
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1088
|
+
readonly currency: "USD";
|
|
1089
|
+
};
|
|
1090
|
+
readonly capabilities: {
|
|
1091
|
+
readonly vision: true;
|
|
1092
|
+
readonly tools: true;
|
|
1093
|
+
readonly reasoning: true;
|
|
1094
|
+
readonly webSearch: true;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
readonly "gpt-5.1": {
|
|
1098
|
+
readonly name: OpenAIModelNames.GPT_5_1;
|
|
1099
|
+
readonly limits: {
|
|
1100
|
+
readonly maxInputTokens: 400000;
|
|
1101
|
+
readonly maxOutputTokens: 128000;
|
|
1102
|
+
};
|
|
1103
|
+
readonly config: {
|
|
1104
|
+
readonly temperature: 1;
|
|
1105
|
+
readonly reasoning_effort: "none";
|
|
1106
|
+
readonly verbosity: "medium";
|
|
1107
|
+
};
|
|
1108
|
+
readonly pricing: {
|
|
1109
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1110
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1111
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1112
|
+
readonly getPriceForAudioInput: () => number;
|
|
1113
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1114
|
+
readonly currency: "USD";
|
|
1115
|
+
};
|
|
1116
|
+
readonly capabilities: {
|
|
1117
|
+
readonly vision: true;
|
|
1118
|
+
readonly tools: true;
|
|
1119
|
+
readonly reasoning: true;
|
|
1120
|
+
readonly webSearch: true;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
readonly "gpt-5.2": {
|
|
1124
|
+
readonly name: OpenAIModelNames.GPT_5_2;
|
|
1125
|
+
readonly limits: {
|
|
1126
|
+
readonly maxInputTokens: 400000;
|
|
1127
|
+
readonly maxOutputTokens: 128000;
|
|
1128
|
+
};
|
|
1129
|
+
readonly config: {
|
|
1130
|
+
readonly temperature: 1;
|
|
1131
|
+
readonly reasoning_effort: "none";
|
|
1132
|
+
readonly verbosity: "medium";
|
|
1133
|
+
};
|
|
1134
|
+
readonly pricing: {
|
|
1135
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1136
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1137
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1138
|
+
readonly getPriceForAudioInput: () => number;
|
|
1139
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1140
|
+
readonly currency: "USD";
|
|
1141
|
+
};
|
|
1142
|
+
readonly capabilities: {
|
|
1143
|
+
readonly vision: true;
|
|
1144
|
+
readonly tools: true;
|
|
1145
|
+
readonly reasoning: true;
|
|
1146
|
+
readonly webSearch: true;
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
readonly "gpt-5.4": {
|
|
1150
|
+
readonly name: OpenAIModelNames.GPT_5_4;
|
|
1151
|
+
readonly limits: {
|
|
1152
|
+
readonly maxInputTokens: 1050000;
|
|
1153
|
+
readonly maxOutputTokens: 128000;
|
|
1154
|
+
};
|
|
1155
|
+
readonly config: {
|
|
1156
|
+
readonly temperature: 1;
|
|
1157
|
+
readonly reasoning_effort: "none";
|
|
1158
|
+
readonly verbosity: "medium";
|
|
1159
|
+
};
|
|
1160
|
+
readonly pricing: {
|
|
1161
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1162
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1163
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1164
|
+
readonly getPriceForAudioInput: () => number;
|
|
1165
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1166
|
+
readonly currency: "USD";
|
|
1167
|
+
};
|
|
1168
|
+
readonly capabilities: {
|
|
1169
|
+
readonly vision: true;
|
|
1170
|
+
readonly tools: true;
|
|
1171
|
+
readonly reasoning: true;
|
|
1172
|
+
readonly webSearch: true;
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
readonly "gpt-5-mini": {
|
|
1176
|
+
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
1177
|
+
readonly limits: {
|
|
1178
|
+
readonly maxInputTokens: 400000;
|
|
1179
|
+
readonly maxOutputTokens: 128000;
|
|
1180
|
+
};
|
|
1181
|
+
readonly config: {
|
|
1182
|
+
readonly temperature: 1;
|
|
1183
|
+
readonly reasoning_effort: "minimal";
|
|
1184
|
+
readonly verbosity: "medium";
|
|
1185
|
+
};
|
|
1186
|
+
readonly pricing: {
|
|
1187
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1188
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1189
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1190
|
+
readonly getPriceForAudioInput: () => number;
|
|
1191
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1192
|
+
readonly currency: "USD";
|
|
1193
|
+
};
|
|
1194
|
+
readonly capabilities: {
|
|
1195
|
+
readonly vision: true;
|
|
1196
|
+
readonly tools: true;
|
|
1197
|
+
readonly reasoning: true;
|
|
1198
|
+
readonly webSearch: true;
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
readonly "gpt-5-nano": {
|
|
1202
|
+
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
1203
|
+
readonly limits: {
|
|
1204
|
+
readonly maxInputTokens: 400000;
|
|
1205
|
+
readonly maxOutputTokens: 128000;
|
|
1206
|
+
};
|
|
1207
|
+
readonly config: {
|
|
1208
|
+
readonly temperature: 1;
|
|
1209
|
+
readonly reasoning_effort: "minimal";
|
|
1210
|
+
readonly verbosity: "medium";
|
|
1211
|
+
};
|
|
1212
|
+
readonly pricing: {
|
|
1213
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1214
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1215
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1216
|
+
readonly getPriceForAudioInput: () => number;
|
|
1217
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1218
|
+
readonly currency: "USD";
|
|
1219
|
+
};
|
|
1220
|
+
readonly capabilities: {
|
|
1221
|
+
readonly vision: false;
|
|
1222
|
+
readonly tools: true;
|
|
1223
|
+
readonly reasoning: true;
|
|
1224
|
+
readonly webSearch: true;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
readonly "gpt-4o-transcribe": {
|
|
1228
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
1229
|
+
readonly limits: {
|
|
1230
|
+
readonly maxInputTokens: 16000;
|
|
1231
|
+
readonly maxOutputTokens: 2000;
|
|
1232
|
+
};
|
|
1233
|
+
readonly config: {
|
|
1234
|
+
readonly temperature: 0.2;
|
|
1235
|
+
};
|
|
1236
|
+
readonly pricing: {
|
|
1237
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1238
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1239
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1240
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
1241
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
1242
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1243
|
+
readonly currency: "USD";
|
|
1244
|
+
};
|
|
1245
|
+
readonly capabilities: {
|
|
1246
|
+
readonly vision: false;
|
|
1247
|
+
readonly tools: false;
|
|
1248
|
+
readonly reasoning: false;
|
|
1249
|
+
readonly webSearch: false;
|
|
1250
|
+
readonly stt: true;
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
readonly "gpt-4o-mini-transcribe": {
|
|
1254
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
1255
|
+
readonly limits: {
|
|
1256
|
+
readonly maxInputTokens: 16000;
|
|
1257
|
+
readonly maxOutputTokens: 2000;
|
|
1258
|
+
};
|
|
1259
|
+
readonly config: {
|
|
1260
|
+
readonly temperature: 0.2;
|
|
1261
|
+
};
|
|
1262
|
+
readonly pricing: {
|
|
1263
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1264
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1265
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1266
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
1267
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
1268
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1269
|
+
readonly currency: "USD";
|
|
1270
|
+
};
|
|
1271
|
+
readonly capabilities: {
|
|
1272
|
+
readonly vision: false;
|
|
1273
|
+
readonly tools: false;
|
|
1274
|
+
readonly reasoning: false;
|
|
1275
|
+
readonly webSearch: false;
|
|
1276
|
+
readonly stt: true;
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
readonly "gpt-4o-mini-tts": {
|
|
1280
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
1281
|
+
readonly limits: {
|
|
1282
|
+
readonly maxInputTokens: 2000;
|
|
1283
|
+
readonly maxOutputTokens: number;
|
|
1284
|
+
};
|
|
1285
|
+
readonly config: {
|
|
1286
|
+
readonly temperature: 0.2;
|
|
1287
|
+
};
|
|
1288
|
+
readonly pricing: {
|
|
1289
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
1290
|
+
readonly getPriceForTextOutput: () => number;
|
|
1291
|
+
readonly getPriceForAudioInput: () => number;
|
|
1292
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
1293
|
+
readonly currency: "USD";
|
|
1294
|
+
};
|
|
1295
|
+
readonly capabilities: {
|
|
1296
|
+
readonly vision: false;
|
|
1297
|
+
readonly tools: false;
|
|
1298
|
+
readonly reasoning: false;
|
|
1299
|
+
readonly webSearch: false;
|
|
1300
|
+
readonly tts: true;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
readonly "tts-1": {
|
|
1304
|
+
readonly name: OpenAIModelNames.TTS_1;
|
|
1305
|
+
readonly limits: {
|
|
1306
|
+
readonly maxInputTokens: 2000;
|
|
1307
|
+
readonly maxOutputTokens: number;
|
|
1308
|
+
};
|
|
1309
|
+
readonly config: {
|
|
1310
|
+
readonly temperature: 0.2;
|
|
1311
|
+
};
|
|
1312
|
+
readonly pricing: {
|
|
1313
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
1314
|
+
readonly getPriceForTextOutput: () => number;
|
|
1315
|
+
readonly getPriceForAudioInput: () => number;
|
|
1316
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1317
|
+
readonly currency: "USD";
|
|
1318
|
+
};
|
|
1319
|
+
readonly capabilities: {
|
|
1320
|
+
readonly vision: false;
|
|
1321
|
+
readonly tools: false;
|
|
1322
|
+
readonly reasoning: false;
|
|
1323
|
+
readonly webSearch: false;
|
|
1324
|
+
readonly tts: true;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
}, OpenAIModelNames.TTS_1 | OpenAIModelNames.GPT_4_OMNI_MINI_TTS>;
|
|
1328
|
+
readonly speech_to_text: Pick<{
|
|
1329
|
+
readonly "gpt-4.1": {
|
|
1330
|
+
readonly name: OpenAIModelNames.GPT_4_1;
|
|
1331
|
+
readonly limits: {
|
|
1332
|
+
readonly maxInputTokens: 1047576;
|
|
1333
|
+
readonly maxOutputTokens: 32768;
|
|
1334
|
+
};
|
|
1335
|
+
readonly config: {
|
|
1336
|
+
readonly temperature: 0.2;
|
|
1337
|
+
};
|
|
1338
|
+
readonly pricing: {
|
|
1339
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1340
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1341
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1342
|
+
readonly getPriceForAudioInput: () => number;
|
|
1343
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1344
|
+
readonly currency: "USD";
|
|
1345
|
+
};
|
|
1346
|
+
readonly capabilities: {
|
|
1347
|
+
readonly vision: true;
|
|
1348
|
+
readonly tools: true;
|
|
1349
|
+
readonly reasoning: false;
|
|
1350
|
+
readonly webSearch: false;
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
readonly "gpt-4.1-mini": {
|
|
1354
|
+
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
1355
|
+
readonly limits: {
|
|
1356
|
+
readonly maxInputTokens: 1047576;
|
|
1357
|
+
readonly maxOutputTokens: 32768;
|
|
1358
|
+
};
|
|
1359
|
+
readonly config: {
|
|
1360
|
+
readonly temperature: 0.2;
|
|
1361
|
+
};
|
|
1362
|
+
readonly pricing: {
|
|
1363
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1364
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1365
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1366
|
+
readonly getPriceForAudioInput: () => number;
|
|
1367
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1368
|
+
readonly currency: "USD";
|
|
1369
|
+
};
|
|
1370
|
+
readonly capabilities: {
|
|
1371
|
+
readonly vision: true;
|
|
1372
|
+
readonly tools: true;
|
|
1373
|
+
readonly reasoning: false;
|
|
1374
|
+
readonly webSearch: false;
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
readonly "gpt-4.1-nano": {
|
|
1378
|
+
readonly name: OpenAIModelNames.GPT_4_1_NANO;
|
|
1379
|
+
readonly limits: {
|
|
1380
|
+
readonly maxInputTokens: 1047576;
|
|
1381
|
+
readonly maxOutputTokens: 32768;
|
|
1382
|
+
};
|
|
1383
|
+
readonly config: {
|
|
1384
|
+
readonly temperature: 0.2;
|
|
1385
|
+
};
|
|
1386
|
+
readonly pricing: {
|
|
1387
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1388
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1389
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1390
|
+
readonly getPriceForAudioInput: () => number;
|
|
1391
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1392
|
+
readonly currency: "USD";
|
|
1393
|
+
};
|
|
1394
|
+
readonly capabilities: {
|
|
1395
|
+
readonly vision: true;
|
|
1396
|
+
readonly tools: true;
|
|
1397
|
+
readonly reasoning: false;
|
|
1398
|
+
readonly webSearch: false;
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1401
|
+
readonly "gpt-5": {
|
|
1402
|
+
readonly name: OpenAIModelNames.GPT_5;
|
|
1403
|
+
readonly limits: {
|
|
1404
|
+
readonly maxInputTokens: 400000;
|
|
1405
|
+
readonly maxOutputTokens: 128000;
|
|
1406
|
+
};
|
|
1407
|
+
readonly config: {
|
|
1408
|
+
readonly temperature: 1;
|
|
1409
|
+
readonly reasoning_effort: "minimal";
|
|
1410
|
+
readonly verbosity: "medium";
|
|
1411
|
+
};
|
|
1412
|
+
readonly pricing: {
|
|
1413
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1414
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1415
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1416
|
+
readonly getPriceForAudioInput: () => number;
|
|
1417
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1418
|
+
readonly currency: "USD";
|
|
1419
|
+
};
|
|
1420
|
+
readonly capabilities: {
|
|
1421
|
+
readonly vision: true;
|
|
1422
|
+
readonly tools: true;
|
|
1423
|
+
readonly reasoning: true;
|
|
1424
|
+
readonly webSearch: true;
|
|
1425
|
+
};
|
|
1426
|
+
};
|
|
1427
|
+
readonly "gpt-5.1": {
|
|
1428
|
+
readonly name: OpenAIModelNames.GPT_5_1;
|
|
1429
|
+
readonly limits: {
|
|
1430
|
+
readonly maxInputTokens: 400000;
|
|
1431
|
+
readonly maxOutputTokens: 128000;
|
|
1432
|
+
};
|
|
1433
|
+
readonly config: {
|
|
1434
|
+
readonly temperature: 1;
|
|
1435
|
+
readonly reasoning_effort: "none";
|
|
1436
|
+
readonly verbosity: "medium";
|
|
1437
|
+
};
|
|
1438
|
+
readonly pricing: {
|
|
1439
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1440
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1441
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1442
|
+
readonly getPriceForAudioInput: () => number;
|
|
1443
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1444
|
+
readonly currency: "USD";
|
|
1445
|
+
};
|
|
1446
|
+
readonly capabilities: {
|
|
1447
|
+
readonly vision: true;
|
|
1448
|
+
readonly tools: true;
|
|
1449
|
+
readonly reasoning: true;
|
|
1450
|
+
readonly webSearch: true;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
readonly "gpt-5.2": {
|
|
1454
|
+
readonly name: OpenAIModelNames.GPT_5_2;
|
|
1455
|
+
readonly limits: {
|
|
1456
|
+
readonly maxInputTokens: 400000;
|
|
1457
|
+
readonly maxOutputTokens: 128000;
|
|
1458
|
+
};
|
|
1459
|
+
readonly config: {
|
|
1460
|
+
readonly temperature: 1;
|
|
1461
|
+
readonly reasoning_effort: "none";
|
|
1462
|
+
readonly verbosity: "medium";
|
|
1463
|
+
};
|
|
1464
|
+
readonly pricing: {
|
|
1465
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1466
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1467
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1468
|
+
readonly getPriceForAudioInput: () => number;
|
|
1469
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1470
|
+
readonly currency: "USD";
|
|
1471
|
+
};
|
|
1472
|
+
readonly capabilities: {
|
|
1473
|
+
readonly vision: true;
|
|
1474
|
+
readonly tools: true;
|
|
1475
|
+
readonly reasoning: true;
|
|
1476
|
+
readonly webSearch: true;
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
readonly "gpt-5.4": {
|
|
1480
|
+
readonly name: OpenAIModelNames.GPT_5_4;
|
|
1481
|
+
readonly limits: {
|
|
1482
|
+
readonly maxInputTokens: 1050000;
|
|
1483
|
+
readonly maxOutputTokens: 128000;
|
|
1484
|
+
};
|
|
1485
|
+
readonly config: {
|
|
1486
|
+
readonly temperature: 1;
|
|
1487
|
+
readonly reasoning_effort: "none";
|
|
1488
|
+
readonly verbosity: "medium";
|
|
1489
|
+
};
|
|
1490
|
+
readonly pricing: {
|
|
1491
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1492
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1493
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1494
|
+
readonly getPriceForAudioInput: () => number;
|
|
1495
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1496
|
+
readonly currency: "USD";
|
|
1497
|
+
};
|
|
1498
|
+
readonly capabilities: {
|
|
1499
|
+
readonly vision: true;
|
|
1500
|
+
readonly tools: true;
|
|
1501
|
+
readonly reasoning: true;
|
|
1502
|
+
readonly webSearch: true;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
readonly "gpt-5-mini": {
|
|
1506
|
+
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
1507
|
+
readonly limits: {
|
|
1508
|
+
readonly maxInputTokens: 400000;
|
|
1509
|
+
readonly maxOutputTokens: 128000;
|
|
1510
|
+
};
|
|
1511
|
+
readonly config: {
|
|
1512
|
+
readonly temperature: 1;
|
|
1513
|
+
readonly reasoning_effort: "minimal";
|
|
1514
|
+
readonly verbosity: "medium";
|
|
1515
|
+
};
|
|
1516
|
+
readonly pricing: {
|
|
1517
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1518
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1519
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1520
|
+
readonly getPriceForAudioInput: () => number;
|
|
1521
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1522
|
+
readonly currency: "USD";
|
|
1523
|
+
};
|
|
1524
|
+
readonly capabilities: {
|
|
1525
|
+
readonly vision: true;
|
|
1526
|
+
readonly tools: true;
|
|
1527
|
+
readonly reasoning: true;
|
|
1528
|
+
readonly webSearch: true;
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
readonly "gpt-5-nano": {
|
|
1532
|
+
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
1533
|
+
readonly limits: {
|
|
1534
|
+
readonly maxInputTokens: 400000;
|
|
1535
|
+
readonly maxOutputTokens: 128000;
|
|
1536
|
+
};
|
|
1537
|
+
readonly config: {
|
|
1538
|
+
readonly temperature: 1;
|
|
1539
|
+
readonly reasoning_effort: "minimal";
|
|
1540
|
+
readonly verbosity: "medium";
|
|
1541
|
+
};
|
|
1542
|
+
readonly pricing: {
|
|
1543
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1544
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1545
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1546
|
+
readonly getPriceForAudioInput: () => number;
|
|
1547
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1548
|
+
readonly currency: "USD";
|
|
1549
|
+
};
|
|
1550
|
+
readonly capabilities: {
|
|
1551
|
+
readonly vision: false;
|
|
1552
|
+
readonly tools: true;
|
|
1553
|
+
readonly reasoning: true;
|
|
1554
|
+
readonly webSearch: true;
|
|
1555
|
+
};
|
|
1556
|
+
};
|
|
1557
|
+
readonly "gpt-4o-transcribe": {
|
|
1558
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
1559
|
+
readonly limits: {
|
|
1560
|
+
readonly maxInputTokens: 16000;
|
|
1561
|
+
readonly maxOutputTokens: 2000;
|
|
1562
|
+
};
|
|
1563
|
+
readonly config: {
|
|
1564
|
+
readonly temperature: 0.2;
|
|
1565
|
+
};
|
|
1566
|
+
readonly pricing: {
|
|
1567
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1568
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1569
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1570
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
1571
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
1572
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1573
|
+
readonly currency: "USD";
|
|
1574
|
+
};
|
|
1575
|
+
readonly capabilities: {
|
|
1576
|
+
readonly vision: false;
|
|
1577
|
+
readonly tools: false;
|
|
1578
|
+
readonly reasoning: false;
|
|
1579
|
+
readonly webSearch: false;
|
|
1580
|
+
readonly stt: true;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
readonly "gpt-4o-mini-transcribe": {
|
|
1584
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
1585
|
+
readonly limits: {
|
|
1586
|
+
readonly maxInputTokens: 16000;
|
|
1587
|
+
readonly maxOutputTokens: 2000;
|
|
1588
|
+
};
|
|
1589
|
+
readonly config: {
|
|
1590
|
+
readonly temperature: 0.2;
|
|
1591
|
+
};
|
|
1592
|
+
readonly pricing: {
|
|
1593
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
1594
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
1595
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
1596
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
1597
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
1598
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1599
|
+
readonly currency: "USD";
|
|
1600
|
+
};
|
|
1601
|
+
readonly capabilities: {
|
|
1602
|
+
readonly vision: false;
|
|
1603
|
+
readonly tools: false;
|
|
1604
|
+
readonly reasoning: false;
|
|
1605
|
+
readonly webSearch: false;
|
|
1606
|
+
readonly stt: true;
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
readonly "gpt-4o-mini-tts": {
|
|
1610
|
+
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
1611
|
+
readonly limits: {
|
|
1612
|
+
readonly maxInputTokens: 2000;
|
|
1613
|
+
readonly maxOutputTokens: number;
|
|
1614
|
+
};
|
|
1615
|
+
readonly config: {
|
|
1616
|
+
readonly temperature: 0.2;
|
|
1617
|
+
};
|
|
1618
|
+
readonly pricing: {
|
|
1619
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
1620
|
+
readonly getPriceForTextOutput: () => number;
|
|
1621
|
+
readonly getPriceForAudioInput: () => number;
|
|
1622
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
1623
|
+
readonly currency: "USD";
|
|
1624
|
+
};
|
|
1625
|
+
readonly capabilities: {
|
|
1626
|
+
readonly vision: false;
|
|
1627
|
+
readonly tools: false;
|
|
1628
|
+
readonly reasoning: false;
|
|
1629
|
+
readonly webSearch: false;
|
|
1630
|
+
readonly tts: true;
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
readonly "tts-1": {
|
|
1634
|
+
readonly name: OpenAIModelNames.TTS_1;
|
|
1635
|
+
readonly limits: {
|
|
1636
|
+
readonly maxInputTokens: 2000;
|
|
1637
|
+
readonly maxOutputTokens: number;
|
|
1638
|
+
};
|
|
1639
|
+
readonly config: {
|
|
1640
|
+
readonly temperature: 0.2;
|
|
1641
|
+
};
|
|
1642
|
+
readonly pricing: {
|
|
1643
|
+
readonly getPriceForTextInput: (characters: number) => number;
|
|
1644
|
+
readonly getPriceForTextOutput: () => number;
|
|
1645
|
+
readonly getPriceForAudioInput: () => number;
|
|
1646
|
+
readonly getPriceForAudioOutput: () => number;
|
|
1647
|
+
readonly currency: "USD";
|
|
1648
|
+
};
|
|
1649
|
+
readonly capabilities: {
|
|
1650
|
+
readonly vision: false;
|
|
1651
|
+
readonly tools: false;
|
|
1652
|
+
readonly reasoning: false;
|
|
1653
|
+
readonly webSearch: false;
|
|
1654
|
+
readonly tts: true;
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
}, OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE | OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE>;
|
|
1658
|
+
};
|
|
1659
|
+
export declare const OPEN_AI_SERVICE_BUILDERS: {
|
|
1660
|
+
readonly completion: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("openai").ClientOptions | undefined) => OpenAICompletionService<LLMReporterInterface<any> | undefined>;
|
|
1661
|
+
readonly assistance: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("openai").ClientOptions | undefined) => OpenAIAssistanceService<LLMReporterInterface<any> | undefined>;
|
|
1662
|
+
readonly speech_to_text: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("openai").ClientOptions | undefined) => OpenAISpeechToTextService<LLMReporterInterface<any> | undefined>;
|
|
1663
|
+
readonly text_to_speech: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("openai").ClientOptions | undefined) => OpenAITextToSpeechService<LLMReporterInterface<any> | undefined>;
|
|
1664
|
+
};
|