Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Merge pull request #56 from ishaan-jaff/main
Browse files Browse the repository at this point in the history
Add support for Llama2, Palm, Cohere, Anthropic, Replicate, Azure Models - using LIteLLM
  • Loading branch information
gharbat authored Sep 11, 2023
2 parents 586691a + b3c29bc commit 99729bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import requests
from flask import Flask, request
from langchain.chains.openai_functions import create_structured_output_chain
from langchain.chat_models import ChatOpenAI
from langchain.chat_models import ChatOpenAI, ChatLiteLLM
from langchain.prompts import ChatPromptTemplate

from langchain.utilities.openapi import OpenAPISpec
Expand Down Expand Up @@ -67,7 +67,7 @@ def handle():
warnings.warn(str(e))
json_output = None

llm = ChatOpenAI(model="gpt-3.5-turbo-0613", temperature=0)
llm = ChatLiteLLM(model="gpt-3.5-turbo-0613", temperature=0)

if json_output is None:
prompt_msgs = non_api_base_prompt(base_prompt, text)
Expand Down
1 change: 1 addition & 0 deletions llm-server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jsonschema==4.19.0
jsonschema-specifications==2023.7.1
langchain==0.0.232
langcodes==3.3.0
litellm>=0.1.574
langsmith==0.0.5
loguru==0.7.1
manifest-ml==0.0.1
Expand Down

0 comments on commit 99729bc

Please sign in to comment.