Format
This commit is contained in:
parent
d65563dd62
commit
5b59e46a13
3 changed files with 3 additions and 9 deletions
|
|
@ -9,9 +9,7 @@ from langflow import CustomComponent
|
||||||
class AzureChatOpenAISpecsComponent(CustomComponent):
|
class AzureChatOpenAISpecsComponent(CustomComponent):
|
||||||
display_name: str = "AzureChatOpenAI"
|
display_name: str = "AzureChatOpenAI"
|
||||||
description: str = "LLM model from Azure OpenAI."
|
description: str = "LLM model from Azure OpenAI."
|
||||||
documentation: str = (
|
documentation: str = "https://python.langchain.com/docs/integrations/llms/azure_openai"
|
||||||
"https://python.langchain.com/docs/integrations/llms/azure_openai"
|
|
||||||
)
|
|
||||||
beta = False
|
beta = False
|
||||||
|
|
||||||
AZURE_OPENAI_MODELS = [
|
AZURE_OPENAI_MODELS = [
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,7 @@ from langflow import CustomComponent
|
||||||
class AzureChatOpenAIComponent(CustomComponent):
|
class AzureChatOpenAIComponent(CustomComponent):
|
||||||
display_name: str = "AzureOpenAI Model"
|
display_name: str = "AzureOpenAI Model"
|
||||||
description: str = "Generate text using LLM model from Azure OpenAI."
|
description: str = "Generate text using LLM model from Azure OpenAI."
|
||||||
documentation: str = (
|
documentation: str = "https://python.langchain.com/docs/integrations/llms/azure_openai"
|
||||||
"https://python.langchain.com/docs/integrations/llms/azure_openai"
|
|
||||||
)
|
|
||||||
beta = False
|
beta = False
|
||||||
|
|
||||||
AZURE_OPENAI_MODELS = [
|
AZURE_OPENAI_MODELS = [
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ class WrapperCreator(LangChainTypeCreator):
|
||||||
@property
|
@property
|
||||||
def type_to_loader_dict(self) -> Dict:
|
def type_to_loader_dict(self) -> Dict:
|
||||||
if self.type_dict is None:
|
if self.type_dict is None:
|
||||||
self.type_dict = {
|
self.type_dict = {wrapper.__name__: wrapper for wrapper in [requests.TextRequestsWrapper]}
|
||||||
wrapper.__name__: wrapper for wrapper in [requests.TextRequestsWrapper]
|
|
||||||
}
|
|
||||||
return self.type_dict
|
return self.type_dict
|
||||||
|
|
||||||
def get_signature(self, name: str) -> Optional[Dict]:
|
def get_signature(self, name: str) -> Optional[Dict]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue