Git Product home page Git Product logo

Comments (12)

geoand avatar geoand commented on August 22, 2024

@edeandrea would you be able to give me the URL the application uses when it hits OpenAI?

Asking because I tried something really quick with Langchain4j but I am getting 404s

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

I really have no idea what url it hits currently. It's baked into the semantic kernel API somewhere.....

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

Or do you mean when it hits the Azure OpenAI service?

from quarkus-super-heroes.

geoand avatar geoand commented on August 22, 2024

The URL. I was hoping that semantic kernel has some debugging you can use

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

Which URL though? The URL it uses for the Azure OpenAI service or for OpenAI.net?

from quarkus-super-heroes.

geoand avatar geoand commented on August 22, 2024

The former

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

It would be something like https://<cognitive-service-endpoint>/deployments/<deployment-name>/completions?api-version=<api-version>

from quarkus-super-heroes.

geoand avatar geoand commented on August 22, 2024

Once quarkiverse/quarkus-langchain4j#39 is in and we do a 0.2.0 release, the switch should be possible and the move to quarkus-langchain4j-azure-openai should make the narration service a lot simpler.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

Per the conversation in quarkiverse/quarkus-langchain4j#39, unfortunately for now we can not bring that extension into the mix within this application due to the fact that this app currently supports integration with both Azure OpenAI and OpenAI.net. The Quarkus Langchain4j extension currently only supports a single provider.

Perhaps in the future it might support multiple providers via configuration, in which case we can re-examine it.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

This is blocked by quarkiverse/quarkus-langchain4j#56

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

@geoand If I include both the openai & azure-open-ai extensions, how do I tell it (at build time) which one to use? Would I use the chat-model.enabled property?

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on August 22, 2024

Nevermind I found quarkus.langchain4j.chat-model.provider!

from quarkus-super-heroes.

Related Issues (20)

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.