Git Product home page Git Product logo

Comments (6)

zxcvxzcv-johndoe avatar zxcvxzcv-johndoe commented on May 27, 2024 1

Thanks tranhoangnguyen03 for this request, I am just right now trying to figure out how to do this too! :)

Edit:
As a temporary workaround you can edit "chat-llamaindex\node_modules.pnpm\node_modules\openai\index.js" line 58 and change that URL to point "http://localhost:5001/v1" if you are using koboldcpp-rocm or koboldcpp.

It's nothing perfect for sure and the token generation limits are way too high for me but I hope that helps someone.

from chat-llamaindex.

ilmarivikstrom avatar ilmarivikstrom commented on May 27, 2024 1

+1

Also looking at how to connect to e.g. Azure OpenAI endpoints. Thinking there needs to be somewhat significant code changes to make it support those endpoints.

If somebody has figured this out, let it be known in this issue!

from chat-llamaindex.

olafgeibig avatar olafgeibig commented on May 27, 2024

I second this. For most developers in the corporate world Azure is the only compliant way to access OpenAI models. Or using an open source model deployed on their cloud infrastructure. In either case we simply need all OpenAI API connection options to be configurable - that's all. Best just evaluate the same environment variables as the OpenAI Python module is doing.

from chat-llamaindex.

marcusschiesser avatar marcusschiesser commented on May 27, 2024

LlamaIndexTS should use Azure if the following environment variables are set:

  • AZURE_OPENAI_ENDPOINT
  • AZURE_OPENAI_API_INSTANCE_NAME
  • OPENAI_API_TYPE (set to azure)

(see: https://github.com/run-llama/LlamaIndexTS/blob/dfd22aac464fed862c39c45c01717a15ced6c3ad/packages/core/src/llm/azure.ts#L90-L96)

Can you set these variables in env.development.local and try again?

from chat-llamaindex.

naveengct avatar naveengct commented on May 27, 2024

But I am not able to access the embedding model, couldn't find the respective variable in .env as well

    code: 'OperationNotSupported',
    message: 'The embeddings operation does not work with the specified model, gpt-4-32k. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.'

Any idea how can I use this ?

from chat-llamaindex.

54188wxp avatar 54188wxp commented on May 27, 2024

对于这种观点我很认同,Azure 是访问 OpenAI 模型的唯一合规方式。或者使用部署在其云基础架构上的开源模型,最好只评估与 OpenAI Python 模块相同的环境变量

from chat-llamaindex.

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.