Skip to content

Commit

Permalink
Use openai module
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed Dec 13, 2024
1 parent cf8a196 commit d1808db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from rest_framework.generics import GenericAPIView
from rest_framework.response import Response

from chatbotcore.llm import OllamaHandler
from chatbotcore.llm import OpenAIHandler
from content.serializers import UserQuerySerializer


class UserQuery(GenericAPIView):
llm = OllamaHandler()
llm = OpenAIHandler()

def post(self, request, *arg, **kwargs):
serializer = UserQuerySerializer(data=request.data)
Expand Down

0 comments on commit d1808db

Please sign in to comment.