Comments (3)
Chat LlamaIndex can use any LLM that is supported by LlamaIndexTS, you just have to plug it in here:
chat-llamaindex/app/api/llm/route.ts
Lines 149 to 154 in 86aca07
from chat-llamaindex.
Chat LlamaIndex can use any LLM that is supported by LlamaIndexTS, you just have to plug it in here:
chat-llamaindex/app/api/llm/route.ts
Lines 149 to 154 in 86aca07
Hi,
Below are the config I have added as asked:
azure: {
apiKey: "xxxxxxxxx",
endpoint: "https://azureopenaillamaindex.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2023-07-01-preview",
apiVersion: "2023-07-01-preview",
deploymentName:"gpt-35-turbo" ,
}
And I am getting below error:
[LlamaIndex] BadRequestError: 400 Unsupported data type
at APIError.generate (C:\LAAMA\chat-llamaindex\node_modules\openai\error.js:43:20)
at AzureOpenAI.makeStatusError (C:\LAAMA\chat-llamaindex\node_modules\openai\core.js:252:33)
at AzureOpenAI.makeRequest (C:\LAAMA\chat-llamaindex\node_modules\openai\core.js:293:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 400,
headers: {
'apim-request-id': 'df10be42-1577-481f-b65e-d1abb4f43bc9',
'content-length': '22',
'content-type': 'text/plain; charset=utf-8',
date: 'Tue, 19 Dec 2023 07:14:23 GMT',
'ms-azureml-model-error-reason': 'model_error',
'ms-azureml-model-error-statuscode': '400',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'x-content-type-options': 'nosniff',
'x-ms-client-request-id': 'df10be42-1577-481f-b65e-d1abb4f43bc9',
'x-ms-region': 'East US',
'x-ratelimit-remaining-requests': '119',
'x-ratelimit-remaining-tokens': '119984',
'x-request-id': '23112d7f-5f0f-4d28-8673-a45c99c69cd3'
},
error: undefined,
code: undefined,
param: undefined,
type: undefined
Can you please help me suspecting what could be the issue.
from chat-llamaindex.
Sorry, currently we're not having an azure example. I would start using this example https://github.com/run-llama/LlamaIndexTS/blob/main/examples/openai.ts and modify the parameters
from chat-llamaindex.
Related Issues (20)
- 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?
- [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
- [Bug] Generating datasource not working anymore on the latest update HOT 3
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.