Open ShuoAndy opened 4 months ago
遇到同样问题
Does your API support Embedding or Function Calling? We do not support these features at this moment, but they are in our development plans.
FAQ | DeepSeek API Docs https://platform.deepseek.com/api-docs/faq/
import os
API_SECRET_KEY = "sk-16fc8d4a022841619ed3bf3434ee2e4f" BASE_URL = "https://api.deepseek.com"
os.environ["OPENAI_API_KEY"] = API_SECRET_KEY os.environ["OPENAI_API_BASE"] = BASE_URL
我的代码如下
在初始化 OpenAIEmbeddings 时似乎遇到了问题:
openai.APIStatusError: Error code: 418 - {'error': 'Requested Resource Not Found', 'stage': 'WAF'}
我该怎么办?