feat: gpt-3.5-turbo-instruct support, refactor: try fetching models if OpenRouter is set (#981)

* refactor: try fetching if OpenRouter api key is set

* feat: gpt-3.5-turbo-instruct support

* fix: use new assignment in getTokenizer
This commit is contained in:
Danny Avila 2023-09-22 07:11:36 -04:00 committed by GitHub
parent 1a77fb4fd5
commit d87754c43d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 10 deletions

View file

@ -153,6 +153,11 @@ class ChatGPTClient extends BaseClient {
} else {
modelOptions.prompt = input;
}
if (this.useOpenRouter && modelOptions.prompt) {
delete modelOptions.stop;
}
const { debug } = this.options;
const url = this.completionsUrl;
if (debug) {