Comments (5)
Hello, thanks for this. Would you mind sharing what version of the openai
Python sdk you are using?
from langchain.
Hello, thanks for this. Would you mind sharing what version of the
openai
Python sdk you are using?
Just added that above. It's 1.27.0
from langchain.
I'll also add that I just tried running this with the latest version of the openai SDK (1.35.4) and got the same error.
from langchain.
Are you sure you've updated the sdk in the correct python environment (and refreshed your jupyter kernel if you're in a notebook)? "required" is definitely a supported tool_choice value in the latest sdk https://github.com/openai/openai-python/blob/main/src/openai/types/chat/chat_completion_tool_choice_option_param.py
from langchain.
Are you sure you've updated the sdk in the correct python environment (and refreshed your jupyter kernel if you're in a notebook)? "required" is definitely a supported tool_choice value in the latest sdk https://github.com/openai/openai-python/blob/main/src/openai/types/chat/chat_completion_tool_choice_option_param.py
Hmmm, I've been using my enterptise' internal OpenAI-compatible API, but looking at their code, it looks like they're currently working off of openai==1.10.0. I guess that's the problem, regardless of what I have installed in my env.
from langchain.
Related Issues (20)
- how to insert id_prefix when upserting using langchain pinecone.from_documents??? or what is the alternative? because id_prefix is very important when we want to delete specific vectors
- how to insert id_prefix when upserting using langchain pinecone.from_documents??? or what is the alternative? because id_prefix is very important when we want to delete specific vectors #24235
- DOC: <Please wri知识库交叉融合,在项目使用中,我有一些公用知识库和私有知识库,我想在回答的时候将私有知识库和公用的知识库结合起来,这怎么实现?后期可以更新吗te a comprehensive title after the 'DOC: ' prefix>
- LangChain AzureOpenAIEmbeddings is not working due to model trying to access microsoft HOT 1
- No module named 'langchain.transformers' HOT 3
- issue using tools with ollama local models
- variable chat_history should be a list of base messages, got HOT 2
- Missing key error - Using PromptTemplate and GraphCypherQAChain. HOT 8
- AzureSearch vector store does not support access token authentication. FIX Suggested HOT 2
- TavilySearch parameters don't change the output. HOT 6
- An output parsing error occurred.
- raise ValueError( ValueError: OpenAIChat currently only supports single prompt, got HOT 1
- ConnectError: [Errno -3] Temporary failure in name resolution HOT 1
- cannot import name 'cast' from 'typing_extensions' HOT 1
- DOC: <Issue related to /v0.2/docs/integrations/text_embedding/nemo/>
- graph_ascii multi-byte width calculation problem
- DOC: <Issue related to /v0.2/docs/integrations/retrievers/pinecone_hybrid_search/>
- DOC: <Issue related to /v0.2/docs/integrations/vectorstores/google_cloud_sql_pg/> SyntaxError: 'await' outside function HOT 1
- OpenAI callback is deceiving when used with Azure OpenAI HOT 1
- RunnableParallel input schema is empty if children runnable input schemas use TypedDict's HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain.