Skip to content

Commit

Permalink
Merge pull request #190 from langchain-ai/brace/add-azure-gating
Browse files Browse the repository at this point in the history
fix: Gate azure model
  • Loading branch information
bracesproul authored Nov 6, 2024
2 parents f3db0de + 8e119a2 commit ca3673f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/chat-interface/model-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ export default function ModelSelector(props: ModelSelectorProps) {
) {
return false;
}
if (
model.name.includes("azure/") &&
process.env.NEXT_PUBLIC_AZURE_ENABLED === "false"
) {
return false;
}
if (
model.name.includes("gemini-") &&
process.env.NEXT_PUBLIC_GEMINI_ENABLED === "false"
Expand Down

0 comments on commit ca3673f

Please sign in to comment.