-
Notifications
You must be signed in to change notification settings - Fork 201
Feature: OpenAI-compatible endpoint for text generation #1395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ed Lee <[email protected]>
Signed-off-by: Ed Lee <[email protected]>
Signed-off-by: Ed Lee <[email protected]>
Signed-off-by: Ed Lee <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Ed Lee <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Ed Lee <[email protected]>
Signed-off-by: Ed Lee <[email protected]>
for more information, see https://pre-commit.ci
Related to #1399 , so the opea microservice can have the api key. |
I am afraid CI cannot verify the OPENAI API without api Key. @chensuyue |
Yes, we don't have this key for CI test. |
… transformers and numpy Signed-off-by: Ed Lee <[email protected]>
Signed-off-by: Ed Lee <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
🚀 New features to boost your workflow:
|
HI @ftian1 and @lkk12014402 thank you for the review. I think there would be three tests that fail because of these known issues: textgen-native-phi4-gaudi #1760 Would it be ok to merge this PR (unrelated to above issues)? |
Thank you all! |
Description
This pull request introduces code and tests using
OpeaTextGenService
that can connect to any OpenAI style endpoint.This allows devs a large choice of endpoints using openapi-like endpoints such as OpenRouter.ai. , and use OPEA with low resources
This PR updates
OpeaTextGenService
so it can connect with OpenAI-like endpoints from OpenRouter.ai (in addition to vLLM and TGI):Key Changes:
textgen-service-endpoint-openai
, in the comps/llms/deployment/docker_compose/compose_text-generation.yaml file to make explicit use the use of OpeaTextGenService for openai-like endpoints.Issues
n/a
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
n/a
Tests
tests/llms/test_llms_textgen_endpoint_openai.sh
This spins up a vllm endpoint, and then tests the connection with a token to the openAI style endpoint using OpeaTextGenService .