mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-25 22:16:49 +08:00
* 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>
30 lines
572 B
Docker
30 lines
572 B
Docker
# Use Node.js 20 as the base image
|
|
FROM node:20
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the application code
|
|
COPY . .
|
|
|
|
# Set environment variables
|
|
ENV GEMINI_API_KEY=${GEMINI_API_KEY}
|
|
ENV OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
ENV JINA_API_KEY=${JINA_API_KEY}
|
|
ENV BRAVE_API_KEY=${BRAVE_API_KEY}
|
|
|
|
# Build the application
|
|
RUN npm run build
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 3000
|
|
|
|
# Set the default command to run the application
|
|
CMD ["npm", "run", "serve"]
|