[Question]: How to use an OpenAI compatible API? #8431
Replies: 4 comments
-
🤖 Hello, Thank you for your question. It seems like you're trying to use a custom model with the The issue you're facing is due to the fact that the However, there are a couple of issues in the LlamaIndex repository that might be relevant to your situation:
These issues suggest that there might be a way to use a custom LLM model with LlamaIndex. You can refer to the documentation at https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_llms.html#example-using-a-custom-llm-model for more information on how to use a custom LLM model. As for the If you're using the I hope this helps! If you have any other questions, feel free to ask. Best, Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
PR in progress: #7973 will try to get that merged soon 🙏🏻 |
Beta Was this translation helpful? Give feedback.
-
Yep finishing up the last few comments on it now. Was out of commission for a few days 😅 |
Beta Was this translation helpful? Give feedback.
-
This issue is still blocking me :( |
Beta Was this translation helpful? Give feedback.
-
Question Validation
Question
For example, GooseAI is AI compatible...
This works
but this fails
ValueError: Unknown model 'gpt-j-6b'. Please provide a valid OpenAI model name in: gpt-4, gpt-4-32k, gpt-4-0613, gpt-4-32k-0613, gpt-4-0314, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k-0613, gpt-3.5-turbo-0301, text-davinci-003, text-davinci-002, gpt-3.5-turbo-instruct, text-ada-001, text-babbage-001, text-curie-001, ada, babbage, curie, davinci, gpt-35-turbo-16k, gpt-35-turbo
It seems that even though I change the api_base, it restricts itself to static openai models
Beta Was this translation helpful? Give feedback.
All reactions