Network timeout when accessing https://tiktoken.pages.dev after OpenAI stream response #7798
Open
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
import {ChatOpenAI} from "@langchain/openai";
new ChatOpenAI({...});
Error Message and Stack Trace (if applicable)
No response
Description
When using the OpenAI API with streaming mode, after receiving the complete stream response, my application attempts to request the URL https://tiktoken.pages.dev (likely related to tokenization). However, the request consistently fails due to network timeout in my local environment.
System Info
[email protected] | MIT | deps: 12 | versions: 314
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/
keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores
dist
.tarball: https://registry.npmmirror.com/langchain/-/langchain-0.3.19.tgz
.shasum: a0329036c4c870018897b91af2ac442c1f07294b
.integrity: sha512-aGhoTvTBS5ulatA67RHbJ4bcV5zcYRYdm5IH+hpX99RYSFXG24XF3ghSjhYi6sxW+SUnEQ99fJhA5kroVpKNhw==
.unpackedSize: 4.8 MB
dependencies:
@langchain/openai: >=0.1.0 <0.5.0 js-yaml: ^4.1.0 openapi-types: ^12.1.3 yaml: ^2.2.1
@langchain/textsplitters: >=0.0.0 <0.2.0 jsonpointer: ^5.0.1 p-retry: 4 zod-to-json-schema: ^3.22.3
js-tiktoken: ^1.0.12 langsmith: >=0.2.8 <0.4.0 uuid: ^10.0.0 zod: ^3.22.4
maintainers:
dist-tags:
latest: 0.3.19 next: 0.3.2-rc.0 tag-for-publishing-older-releases: 0.2.20
published 2 weeks ago by basproul [email protected]
The text was updated successfully, but these errors were encountered: