From a4023a03070fa83f8e6fedb40240ec22a18c0045 Mon Sep 17 00:00:00 2001 From: Vali98 Date: Sat, 10 Aug 2024 22:14:58 +0800 Subject: [PATCH] fix: Open Router not working using OpenAI models --- app/constants/APIState/OpenRouterAPI.ts | 1 - package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/constants/APIState/OpenRouterAPI.ts b/app/constants/APIState/OpenRouterAPI.ts index 5d89258..90c9806 100644 --- a/app/constants/APIState/OpenRouterAPI.ts +++ b/app/constants/APIState/OpenRouterAPI.ts @@ -31,7 +31,6 @@ class OpenRouterAPI extends APIBase { Math.min(length, openRouterModel.context_length) ), stop: this.constructStopSequence(), - response_format: { type: 'json_object' }, } } inference = async () => { diff --git a/package-lock.json b/package-lock.json index 0deb3ba..ef657e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "babel-plugin-inline-import": "^3.0.0", "babel-plugin-react-compiler": "^0.0.0-experimental-696af53-20240625", "bert-tokenizer": "^1.1.8", - "cui-llama.rn": "^1.0.7", + "cui-llama.rn": "^1.0.9", "drizzle-orm": "^0.30.10", "eas-cli": "^9.1.0", "expo": "^51.0.21", @@ -14693,9 +14693,9 @@ "license": "MIT" }, "node_modules/cui-llama.rn": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cui-llama.rn/-/cui-llama.rn-1.0.7.tgz", - "integrity": "sha512-ujvfFWNMs8wVTp3eF0AB5V5OhzysQ3vXZF1dByE6TSvLNIx+l7JFyZdOoxqG2F7LPtkqDlxOvy6wnuqbYqCpUA==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/cui-llama.rn/-/cui-llama.rn-1.0.9.tgz", + "integrity": "sha512-+CWnzl+/VrzAwtSpMR4lZKWi/4CSWtZZ6IKNLRojFofTvL9htSrKcnyccttXIyfx8JfyWilKJdSTL//rMnNQDA==", "license": "MIT", "engines": { "node": ">= 16.0.0" diff --git a/package.json b/package.json index 6a15987..c568d20 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "babel-plugin-inline-import": "^3.0.0", "babel-plugin-react-compiler": "^0.0.0-experimental-696af53-20240625", "bert-tokenizer": "^1.1.8", - "cui-llama.rn": "^1.0.7", + "cui-llama.rn": "^1.0.9", "drizzle-orm": "^0.30.10", "eas-cli": "^9.1.0", "expo": "^51.0.21",