Skip to content

Commit

Permalink
Disable model checking when intelligence is false (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
devleejb authored Oct 28, 2024
1 parent eb034ea commit 34f52c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/langchain/langchain.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const chatModelFactory = {
provide: "ChatModel",
useFactory: (configService: ConfigService) => {
const modelType = configService.get("YORKIE_INTELLIGENCE");

if (modelType === "false") return null;

try {
// Split the modelType string into provider and model
// ex) "ollama:gemma2:2b" => ["ollama", "gemma2:2b"]
Expand Down

0 comments on commit 34f52c9

Please sign in to comment.