mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Clarify getstatus API
Instead of "version" and "koboldVersion", have "koboldUnitedVersion" and "koboldCppVersion", the latter of which is null if we're not connected to KoboldCpp.
This commit is contained in:
		| @@ -901,17 +901,17 @@ async function getStatusKobold() { | ||||
|  | ||||
|         const data = await response.json(); | ||||
|  | ||||
|         online_status = data?.result; | ||||
|         online_status = data?.model ?? 'no_connection'; | ||||
|  | ||||
|         if (!online_status) { | ||||
|             online_status = 'no_connection'; | ||||
|         if (!data.koboldUnitedVersion) { | ||||
|             throw new Error('Missing mandatory Kobold version in data:', data); | ||||
|         } | ||||
|  | ||||
|         // Determine instruct mode preset | ||||
|         autoSelectInstructPreset(online_status); | ||||
|  | ||||
|         // determine if we can use stop sequence and streaming | ||||
|         setKoboldFlags(data.version, data.koboldVersion); | ||||
|         setKoboldFlags(data.koboldUnitedVersion, data.koboldCppVersion); | ||||
|  | ||||
|         // We didn't get a 200 status code, but the endpoint has an explanation. Which means it DID connect, but I digress. | ||||
|         if (online_status === 'no_connection' && data.response) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user