feature(wren-ai-service): Automatically loading the providers (#267)

* chore: rename the package

* feat: auto loading the providers

* feat: using provider loader instead

* feat: move the verify function into the OpenAI provider

* feat: add test cases for providers loader

* fix: wrong provider name

* fix: add environment variable for CI

* chore: remove redundent testing code

* chore: update the function doc

* chore: pass the api key into openai client

---------

Co-authored-by: Chih-Yu Yeh <chihyu.jimmy.yeh@gmail.com>
This commit is contained in:
Pao Sheng
2024-05-17 17:55:12 +08:00
committed by GitHub
co-authored by Chih-Yu Yeh
parent 7b07f2015c
commit bd60e1c3a6
17 changed files with 164 additions and 61 deletions
+2
View File
@@ -56,6 +56,8 @@ jobs:
docker stop wren-engine && docker rm wren-engine
env:
ENV: dev
LLM_PROVIDER: openai
DOCUMENT_STORE_PROVIDER: qdrant
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_GENERATION_MODEL: gpt-3.5-turbo
WREN_ENGINE_ENDPOINT: http://localhost:8080