Skip to content

LangChainAdapter call ChatDeepSeek error #2926

@sunwenzhe-git

Description

@sunwenzhe-git

console.log(OPENAI_MODEL,'OPENAI_MODEL');
const chatModel = new ChatDeepSeek({
apiKey: OPENAI_API_KEY,
model: OPENAI_MODEL,
temperature: 0,
});
const serviceAdapter = new LangChainAdapter({
chainFn: async ({ messages, tools }) => {
return chatModel.bindTools(tools).stream(messages);
},
});
Agent execution failed: Error: Unknown provider "undefined" in "undefined/undefined". Supported: openai, anthropic, google (gemini).
at ignore-listed frames

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions