Refactor agent API structure and add core functionality with FastAPI integration
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from dotenv import load_dotenv
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
load_dotenv(Path(__file__).resolve().parent.parent.parent / ".env")
|
||||
|
||||
DEEPSEEK_API_KEY = os.getenv("DEEPSEEK_API_KEY")
|
||||
@@ -0,0 +1,7 @@
|
||||
from openai import OpenAI
|
||||
from .config import DEEPSEEK_API_KEY
|
||||
|
||||
client = OpenAI(
|
||||
api_key=DEEPSEEK_API_KEY,
|
||||
base_url="https://api.deepseek.com"
|
||||
)
|
||||
Reference in New Issue
Block a user