Comments (6)
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.
+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.
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.
LlamaIndexTS should use Azure if the following environment variables are set:
AZURE_OPENAI_ENDPOINT
AZURE_OPENAI_API_INSTANCE_NAME
OPENAI_API_TYPE
(set toazure
)
Can you set these variables in env.development.local
and try again?
from chat-llamaindex.
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.
对于这种观点我很认同,Azure 是访问 OpenAI 模型的唯一合规方式。或者使用部署在其云基础架构上的开源模型,最好只评估与 OpenAI Python 模块相同的环境变量
from chat-llamaindex.
Related Issues (20)
- [Bug] Hit Token limit when using the generate command HOT 8
- Unclear where to add datasource for bots created in UI HOT 2
- [Bug] Error: Set OpenAI Key in OPENAI_API_KEY env variable HOT 1
- [Feature] Python version HOT 1
- Add a Roadmap on project's README
- [Bug] - Vercel Blob token required for local usage
- [Bug] Error getting OPENAI_API_KEY from .env.development.local: ENOENT: no such file or directory HOT 4
- [Feature] Being able to embed this app into a Django application, Django, Django CMS, Wagtail
- How to integrate solution with Azure OpenAI service for embeddings and inferences.
- Unable to integrate Azure OpenAI service for generating embeddings and inferences.
- Supported LLM: Azure OpenAI?
- Supported LLM: Azure OpenAI? HOT 3
- [Feature] Local LLM Support HOT 10
- [Bug] TypeError: text.match is not a function HOT 1
- [Bug] Emoji not loading HOT 1
- [Bug] Warning: filter "Crypt" not supported yet
- How can we show up the Citation for all the response.
- [Bug] deployement on aws amplify is not working properly HOT 2
- Problems with uploading PDF files after update #76 HOT 1
- [Feature] Connect to Python-based llamaindex instance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat-llamaindex.