HamaWhite

Results 16 comments of HamaWhite

> after looking through some other bugs, found this. It fixed it for me. The documentation on hugging face for the version to install must be newer, but broken. >...

In Java, you can use LangChain: https://github.com/HamaWhiteGG/langchain-java @laglangyue

In Java, you can use LangChain: https://github.com/HamaWhiteGG/langchain-java @ken20220214 @izzymsft @Undertone0809

Thanks @bent-verbiage , I finish it without memory store. ```python import os from langchain_openai import ChatOpenAI from langchain.schema import AIMessage, HumanMessage import gradio as gr os.environ["OPENAI_API_KEY"] = "sk-xxx" # Initialize...

when I use Node 20.11.0, I also meet the error. ```shell pm ERR! info RUN '-DCMAKE_CXX_FLAGS=-DBUILDING_NODE_EXTENSION' npm ERR! info RUN ] npm ERR! CMake Error at CMakeLists.txt:51 (add_subdirectory): npm ERR!...

can you provide more detailed log? ( add -e at the end the mvn command

I have encountered the same issue and hope it can be resolved. Thank you.

@codebyamir Temporary Solution, I copied this code into my project [langchain-java](https://github.com/HamaWhiteGG/langchain-java) and pushed it to the Maven repository. https://github.com/HamaWhiteGG/langchain-java You can use the following Maven dependency: ```xml io.github.hamawhitegg serpapi-client 0.1.7...

Supports Stream, but there is no callback. see [StreamOpenAIExample](https://github.com/HamaWhiteGG/langchain-java/blob/main/langchain-examples/src/main/java/com/hw/langchain/examples/llms/StreamOpenAIExample.java) ```java public class StreamOpenAIExample { public static void main(String[] args) { var llm = OpenAI.builder() .maxTokens(1000) .temperature(0) .requestTimeout(120) .build() .init(); var...