mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Don't render manager on non-chat completion APIs
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| import {callPopup, event_types, eventSource, substituteParams} from "../script.js"; | import {callPopup, event_types, eventSource, main_api, substituteParams} from "../script.js"; | ||||||
| import {TokenHandler} from "./openai.js"; | import {TokenHandler} from "./openai.js"; | ||||||
| import {power_user} from "./power-user.js"; | import {power_user} from "./power-user.js"; | ||||||
| import { debounce } from "./utils.js"; | import { debounce } from "./utils.js"; | ||||||
| @@ -582,6 +582,8 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti | |||||||
|  * @param afterTryGenerate - Whether a dry run should be attempted before rendering |  * @param afterTryGenerate - Whether a dry run should be attempted before rendering | ||||||
|  */ |  */ | ||||||
| PromptManagerModule.prototype.render = function (afterTryGenerate = true) { | PromptManagerModule.prototype.render = function (afterTryGenerate = true) { | ||||||
|  |     if (main_api !== 'openai') return; | ||||||
|  |  | ||||||
|     if (null === this.activeCharacter) return; |     if (null === this.activeCharacter) return; | ||||||
|     this.error = null; |     this.error = null; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user