Skip to content

Got errors while parsing utf-8 containing data. #8190

New issue

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

Open
5 tasks done
zekih opened this issue May 16, 2025 · 0 comments
Open
5 tasks done

Got errors while parsing utf-8 containing data. #8190

zekih opened this issue May 16, 2025 · 0 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@zekih
Copy link

zekih commented May 16, 2025

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

import { CopilotRuntime, LangChainAdapter } from "@copilotkit/runtime";
import { ChatOpenAI } from "@langchain/openai";

const copilotKit = new CopilotRuntime();

const model = new ChatOpenAI({
model: "gpt-4o",
apiKey: "",
});

Error Message and Stack Trace (if applicable)

No response

Description

When I use this code, the model cannot decode Turkish letters (like ü,ç) when returning to me. And this causes unparsable json error.

System Info

@copilotkit/runtime -> 1.8.4
@langchain/openai -> 0.4.5

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant