Skip to content

How to setup local http api_endpoint #2868

Answered by wsxiaoys
kevint324 asked this question in Q&A
Discussion options

You must be logged in to vote

OpenAI SDK requires setting the base URL in a format similar to https://api.openai.com/v1. Therefore, in your case, it should be http://172.16.32.20:8089/api/pass/v4.

Besides - chat completion model endpoint is not really usable with model.completion.http. See https://tabby.tabbyml.com/docs/references/models-http-api/openai/ for details.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by wsxiaoys
Comment options

You must be logged in to vote
1 reply
@wapleeeeee
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cbenitez81
Comment options

Comment options

You must be logged in to vote
1 reply
@b4ushankar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2862 on August 14, 2024 01:00.