We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的代码如下
from langchain_openai import ChatOpenAI, OpenAIEmbeddings llm = ChatOpenAI( model='deepseek-chat', openai_api_key='xxx', openai_api_base='https://api.deepseek.com/v1', temperature=0.85, max_tokens=4000 ) embeddings = OpenAIEmbeddings(api_key="xxx", base_url="https://api.deepseek.com/v1")
在初始化 OpenAIEmbeddings 时似乎遇到了问题:openai.APIStatusError: Error code: 418 - {'error': 'Requested Resource Not Found', 'stage': 'WAF'} 我该怎么办?
openai.APIStatusError: Error code: 418 - {'error': 'Requested Resource Not Found', 'stage': 'WAF'}
The text was updated successfully, but these errors were encountered:
遇到同样问题
Sorry, something went wrong.
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
No branches or pull requests
我的代码如下
在初始化 OpenAIEmbeddings 时似乎遇到了问题:
openai.APIStatusError: Error code: 418 - {'error': 'Requested Resource Not Found', 'stage': 'WAF'}
我该怎么办?
The text was updated successfully, but these errors were encountered: