Skip to content

Commit

Permalink
Disable azure
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Dec 11, 2023
1 parent 32b6eda commit bc3c9a1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class GizmoAgentType(str, Enum):
GPT_35_TURBO = "GPT 3.5 Turbo"
# GPT_4 = "GPT 4"
AZURE_OPENAI = "GPT 4 (Azure OpenAI)"
# AZURE_OPENAI = "GPT 4 (Azure OpenAI)"
CLAUDE2 = "Claude 2"
BEDROCK_CLAUDE2 = "Claude 2 (Amazon Bedrock)"

Expand Down
20 changes: 10 additions & 10 deletions backend/packages/gizmo-agent/gizmo_agent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def __init__(
_agent = get_openai_function_agent(_tools, system_message)
# elif agent == GizmoAgentType.GPT_4:
# _agent = get_openai_function_agent(_tools, system_message, gpt_4=True)
elif agent == GizmoAgentType.AZURE_OPENAI:
_agent = get_openai_function_agent(_tools, system_message, azure=True)
# elif agent == GizmoAgentType.AZURE_OPENAI:
# _agent = get_openai_function_agent(_tools, system_message, azure=True)
elif agent == GizmoAgentType.CLAUDE2:
_agent = get_xml_agent(_tools, system_message)
elif agent == GizmoAgentType.BEDROCK_CLAUDE2:
Expand Down Expand Up @@ -90,14 +90,14 @@ class AgentOutput(BaseModel):
).configurable_alternatives(
ConfigurableField(id="llm", name="LLM"),
default_key="gpt-35-turbo",
azure_openai=AzureChatOpenAI(
temperature=0,
deployment_name=os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"],
openai_api_base=os.environ["AZURE_OPENAI_API_BASE"],
openai_api_version=os.environ["AZURE_OPENAI_API_VERSION"],
openai_api_key=os.environ["AZURE_OPENAI_API_KEY"],
streaming=True,
),
# azure_openai=AzureChatOpenAI(
# temperature=0,
# deployment_name=os.environ["AZURE_OPENAI_DEPLOYMENT_NAME"],
# openai_api_base=os.environ["AZURE_OPENAI_API_BASE"],
# openai_api_version=os.environ["AZURE_OPENAI_API_VERSION"],
# openai_api_key=os.environ["AZURE_OPENAI_API_KEY"],
# streaming=True,
# ),
)


Expand Down
1 change: 0 additions & 1 deletion backend/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenGPTs</title>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
Expand Down
1 change: 0 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenGPTs</title>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
Expand Down

0 comments on commit bc3c9a1

Please sign in to comment.