Skip to content

Commit

Permalink
update OpenAI endpoints' default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaXYWang committed Dec 5, 2023
1 parent 5d13792 commit a86c03f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class OpenAICompletion(override val uid: String) extends CognitiveServicesBase(u
with HasInternalJsonOutputParser with SynapseMLLogging {
logClass(FeatureNames.AiServices.OpenAI)

setDefault(timeout -> 360.0)

def this() = this(Identifiable.randomUID("OpenAICompletion"))

def urlPath: String = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class OpenAIEmbedding (override val uid: String) extends CognitiveServicesBase(u
with HasOpenAISharedParams with HasCognitiveServiceInput with SynapseMLLogging {
logClass(FeatureNames.AiServices.OpenAI)

setDefault(timeout -> 360.0)

def this() = this(Identifiable.randomUID("OpenAIEmbedding"))

def urlPath: String = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class OpenAIPrompt(override val uid: String) extends Transformer
with HasSubscriptionKey with HasAADToken with HasCustomAuthHeader
with ComplexParamsWritable with SynapseMLLogging {

setDefault(timeout -> 360.0)

logClass(FeatureNames.AiServices.OpenAI)

def this() = this(Identifiable.randomUID("OpenAIPrompt"))
Expand Down

0 comments on commit a86c03f

Please sign in to comment.