Add OpenAI icon to ConversationalAgent and ChatOpenAIComponent
This commit is contained in:
parent
a7de13ab85
commit
795068b4a4
2 changed files with 3 additions and 1 deletions
|
|
@ -16,7 +16,8 @@ from langflow.field_typing.range_spec import RangeSpec
|
||||||
class ConversationalAgent(CustomComponent):
|
class ConversationalAgent(CustomComponent):
|
||||||
display_name: str = "OpenAI Conversational Agent"
|
display_name: str = "OpenAI Conversational Agent"
|
||||||
description: str = "Conversational Agent that can use OpenAI's function calling API"
|
description: str = "Conversational Agent that can use OpenAI's function calling API"
|
||||||
|
icon = "OpenAI"
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
openai_function_models = [
|
openai_function_models = [
|
||||||
"gpt-4-turbo-preview",
|
"gpt-4-turbo-preview",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ from langflow.field_typing import BaseLanguageModel, NestedDict
|
||||||
class ChatOpenAIComponent(CustomComponent):
|
class ChatOpenAIComponent(CustomComponent):
|
||||||
display_name = "ChatOpenAI"
|
display_name = "ChatOpenAI"
|
||||||
description = "`OpenAI` Chat large language models API."
|
description = "`OpenAI` Chat large language models API."
|
||||||
|
icon = "OpenAI"
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue