Skip to content

Commit

Permalink
added support to phi3 model
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed May 4, 2024
1 parent 6eb7fc0 commit 46b9ff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base_agent/llminterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def get_response(self, question: str, context: str = None) -> str:
elif 'wizard' in self.model:
self.model = 'wizardlm2'
return self.get_ollama_response(question, context)
elif 'phi' in self.model:
self.model = 'phi3'
return self.get_ollama_response(question, context)

def get_gpt_response(self, question: str, context: str)->str:
response = self.llm.chat.completions.create(
Expand Down

0 comments on commit 46b9ff9

Please sign in to comment.