Package com.hw.langchain.llms.openai
Class OpenAI
java.lang.Object
com.hw.langchain.llms.base.BaseLLM
com.hw.langchain.llms.openai.BaseOpenAI
com.hw.langchain.llms.openai.OpenAI
- All Implemented Interfaces:
BaseLanguageModel
OpenAI
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.llms.openai.BaseOpenAI
allowedSpecial, batchSize, bestOf, client, disallowedSpecial, frequencyPenalty, interceptorList, logitBias, maxRetries, maxTokens, model, n, openaiApiBase, openaiApiKey, openaiApiType, openaiApiVersion, openaiOrganization, openaiProxy, presencePenalty, proxyPassword, proxyUsername, requestTimeout, stream, temperature, topP
-
Constructor Summary
-
Method Summary
Methods inherited from class com.hw.langchain.llms.openai.BaseOpenAI
asyncInnerGenerate, innerGenerate, llmType
Methods inherited from class com.hw.langchain.llms.base.BaseLLM
asyncGeneratePrompt, asyncPredict, call, call, generate, generatePrompt, predict, predictMessages
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hw.langchain.base.language.BaseLanguageModel
asyncGeneratePrompt, asyncPredict, asyncPredictMessages, predict, predictMessages
-
Constructor Details
-
OpenAI
public OpenAI()
-
-
Method Details
-
init
Validate that api key exists in environment.
-