Coder Social home page Coder Social logo

intelligentnode / intellijava Goto Github PK

View Code? Open in Web Editor NEW
63.0 4.0 8.0 7.31 MB

Integrate with the latest language models, image generation, speech, and deep learning frameworks like ChatGPT, DALL·E, and Cohere using few java lines.

Home Page: https://show.intellinode.ai/

License: Apache License 2.0

Java 100.00%
openai gpt3 dalle2 image-generation text-generation java cohere text-to-speech chatgpt chatbot

intellijava's People

Contributors

barqawiz avatar bhaumikymehta avatar intelligentnode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

intellijava's Issues

package com.intellijava.com.intellijava.core.controller does not exist

I am trying to integrate this plugin onto my maven project, I have tried both the ways suggested by you but, it looks like the plugin is not being fetched when I perform clean install. Please let me know if I am doing something wrong here, thanks.

PFA for the error:

Screenshot 2023-01-10 at 10 31 58 AM

I have added the plugin as an external library

Screenshot 2023-01-10 at 10 32 51 AM

I tried adding it as a maven dependency as well

Screenshot 2023-01-10 at 10 55 03 AM

Great library hope it will add more features

Hi , thanks for sharing such a library.
I want tts for Chinese , Turkish support on code :
how to use tts for turkish or chinese or other langs ?
model.generateGoogleText seems private field.

    // 1- initiate the remote speech model
    RemoteSpeechModel model = new RemoteSpeechModel("xxxxxxxxxxxxxxxx", SpeechModels.google);
    List<String> supportedModels = model.getSupportedModels();

    // 2- call generateEnglishText with any text
    Text2SpeechInput input = new Text2SpeechInput.Builder("Hi, I am Intelligent Java.").build();

    byte[] decodedAudio = model.generateEnglishText(input); 

Also it would be good to add STT (speech to text) library into this library

I have added patch to select playerCode

public byte[] generateGoogleText(String text, Gender gender , String playerCode , String language ) throws IOException {
	byte[] decodedAudio = null;

	Map<String, Object> params = new HashMap<>();
	params.put("text", text);
	params.put("languageCode", language);

	if (gender == Gender.FEMALE) {
		params.put("name", "en-GB-Standard-A");
		params.put("ssmlGender", "FEMALE");
	} else {
		params.put("name", "en-GB-Standard-B");
		params.put("ssmlGender", "MALE");
	}

	if(playerCode != null) {
		params.put("name",playerCode);
	}

	AudioResponse resModel = (AudioResponse) wrapper.generateSpeech(params);
	decodedAudio = AudioHelper.decode(resModel.getAudioContent());

	return decodedAudio;
}

[question] how do we ask continuously?

on ChatGPT web we can ask multiple times keeping conversation context.
how do we do using this library?

below doesn't work well (context seems to be reset every time) .

        while (true) {
            System.out.print("Q: ");
            String prompt = new BufferedReader(new InputStreamReader(System.in)).readLine();
            LanguageModelInput langInput = new LanguageModelInput.Builder(prompt)
                    .setModel(chatGptModel)
                    .setTemperature(0.5f)
                    .setMaxTokens(1024).build();
            String resValue = langModel.generateText(langInput);
            System.out.println("A:");
            System.out.println(resValue);
        }

Chatgpt as realtime stream response ?

Hi , how can i get ChatGPT realtime response like on openai website.
This api awaits for response so much long time.

And how can i get current session id of webrequest ?
I mean i ask many questions on 1 session.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.