mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
feat: add OpenAI provider with structured output support (#28)
* feat: add OpenAI provider with structured output support Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: add @ai-sdk/openai dependency and fix modelConfigs access Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: correct indentation in agent.ts Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: centralize model initialization in config.ts Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: improve model config access patterns Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: remove unused imports Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: clean up --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
committed by
GitHub
parent
f1c7ada6ae
commit
50dff0863c
12
README.md
12
README.md
@@ -25,12 +25,7 @@ flowchart LR
|
||||
|
||||
## Install
|
||||
|
||||
We use gemini for llm, [jina reader](https://jina.ai/reader) for searching and reading webpages.
|
||||
|
||||
```bash
|
||||
export GEMINI_API_KEY=... # for gemini api, ask han
|
||||
export JINA_API_KEY=jina_... # free jina api key, get from https://jina.ai/reader
|
||||
|
||||
git clone https://github.com/jina-ai/node-DeepResearch.git
|
||||
cd node-DeepResearch
|
||||
npm install
|
||||
@@ -39,7 +34,14 @@ npm install
|
||||
|
||||
## Usage
|
||||
|
||||
We use Gemini/OpenAI for reasoning, [Jina Reader](https://jina.ai/reader) for searching and reading webpages, you can get a free API key with 1M tokens from jina.ai.
|
||||
|
||||
```bash
|
||||
export GEMINI_API_KEY=... # for gemini
|
||||
# export OPENAI_API_KEY=... # for openai
|
||||
# export LLM_PROVIDER=openai # for openai
|
||||
export JINA_API_KEY=jina_... # free jina api key, get from https://jina.ai/reader
|
||||
|
||||
npm run dev $QUERY
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user