update: remove openai
This commit is contained in:
@@ -37,11 +37,11 @@ export class Ollama extends BaseChat {
|
||||
async listModels(): Promise<{ models: OllamaModel[] }> {
|
||||
const _url = new URL(this.baseURL);
|
||||
const tagsURL = new URL('/api/tags', _url);
|
||||
return this.openai.get(tagsURL.toString());
|
||||
return this.get(tagsURL.toString());
|
||||
}
|
||||
async listRunModels(): Promise<{ models: OllamaModel[] }> {
|
||||
const _url = new URL(this.baseURL);
|
||||
const tagsURL = new URL('/api/ps', _url);
|
||||
return this.openai.get(tagsURL.toString());
|
||||
return this.get(tagsURL.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user