mirror of
				https://github.com/osmarks/autobotrobot
				synced 2025-10-31 07:53:00 +00:00 
			
		
		
		
	Switchabler LLM backend
This commit is contained in:
		| @@ -344,8 +344,9 @@ async def generate(response: aiohttp.ClientSession, prompt): | ||||
|         "prompt": prompt, | ||||
|         "max_tokens": 200, | ||||
|         "stop": ["\n"], | ||||
|         "client": "abr" | ||||
|     }) as res: | ||||
|         "client": "abr", | ||||
|         **config["ai"].get("params", {}) | ||||
|     }, headers=config["ai"].get("headers", {})) as res: | ||||
|         data = await res.json() | ||||
|         return data["choices"][0]["text"] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user