This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-26 16:23:31 -03:00
commit 5b59e46a13
3 changed files with 3 additions and 9 deletions

View file

@ -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 = [

View file

@ -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 = [

View file

@ -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]: