Originally created by @EngYasserSharaf on GitHub (Aug 23, 2024).
I have an APi key from https://aimlap.com and their API endpoint doesn't end with v1 I tried to add their endpoint url and my API key but it couldn't list the models in the workspace page
Their code from the docs
const { Configuration, OpenAIApi } = require("openai");
const configuration = new Configuration({
apiKey: "YOUR_API_KEY",
basePath: "https://api.aimlapi.com/",
});
const openai = new OpenAIApi(configuration);
async function run() {
const response = await openai.createCompletion({
model: "mistralai/Mistral-7B-Instruct-v0.2",
prompt: "Tell me a joke",
max_tokens: 50,
});
console.log(response.data.choices[0].text);
}
run();
So their API url is https://api.aimlapi.com/ and I found out that in the network tab it could list the models successfully
but when I go to workspace and check the models, I get nothing.
Originally created by @EngYasserSharaf on GitHub (Aug 23, 2024).
I have an APi key from https://aimlap.com and their API endpoint doesn't end with `v1` I tried to add their endpoint url and my API key but it couldn't list the models in the workspace page
Their code from the docs
```
const { Configuration, OpenAIApi } = require("openai");
const configuration = new Configuration({
apiKey: "YOUR_API_KEY",
basePath: "https://api.aimlapi.com/",
});
const openai = new OpenAIApi(configuration);
async function run() {
const response = await openai.createCompletion({
model: "mistralai/Mistral-7B-Instruct-v0.2",
prompt: "Tell me a joke",
max_tokens: 50,
});
console.log(response.data.choices[0].text);
}
run();
```

So their API url is `https://api.aimlapi.com/` and I found out that in the network tab it could list the models successfully

but when I go to workspace and check the models, I get nothing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @EngYasserSharaf on GitHub (Aug 23, 2024).
I have an APi key from https://aimlap.com and their API endpoint doesn't end with
v1I tried to add their endpoint url and my API key but it couldn't list the models in the workspace pageTheir code from the docs
So their API url is
https://api.aimlapi.com/and I found out that in the network tab it could list the models successfullybut when I go to workspace and check the models, I get nothing.