Skip to content

Commit

Permalink
Add base url control inside of lite llm gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marti2203 committed Aug 25, 2024
1 parent 45cd9de commit 1b47dda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/model/gptlitellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def call(
max_tokens=1024,
response_format={"type": response_format},
top_p=top_p,
base_url=os.getenv("OPENAI_API_BASE_URL", None),
stream=False,
)
assert isinstance(response, ModelResponse)
Expand Down

0 comments on commit 1b47dda

Please sign in to comment.