LinuxDo 新帖推送
185 subscribers
253K photos
315K links
Download Telegram
标题: owu 使用调优……使用自定义图像url
作者: #Stevessr
板块: #开发调优
编号: 506938
帖子: https://linux.do/t/topic/506938
时间: 2025-03-22 08:19:47
摘要:
更换用户头像为自定义
curl '{$owu_url}/api/v1/auths/update/profile' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'authorization: Bearer {user_token}' \
--data-raw '{"name":"{user_name}","profile_image_url":"{你想要的url}"}'

自动化把全部模型都扫一遍……添加默认参数……提供模型图片更改入口(from config.json)(bro是真不想一个一个改)
import json

def transform_json(input_json):
"""
Transforms the input JSON to the desired format, preserving existing meta values.

Args:
input_json: The input JSON dictionary.

Returns:
The transformed JSON dictionary.
"""

transformed_json = {
"base_model_id": None,
"created": input_json.get("created"),
"id": input_json.get("id"),
"is_active": input_json.get("is_active"),
"meta": { # Initialize meta, then update with existing values
"description": "",
"profile_image_url": "「your image url here」",
"suggestion_prompts": None,
"tags": []
},
"name": input_json.get("name"),
"object": input_json.get("object"),
"openai": input_json.get("openai"),
"owned_by": input_json.get("owned_by"),
"params": {
"system": ""
},
"parent": input_json.get("parent"),
"permission": input_json.get("permission"),
"root": input_json.get("id"),
"urlIdx": input_json.get("urlIdx")
}

# Preserve existing 'meta' values if they exist
if "meta" in input_json:
existing_meta = input_json["meta"]
# Update only if the key exists in the existing meta and input_json.
if isinstance(existing_meta, dict): # Ensure existing_meta is dictionary
for key in ["description", "profile_image_url", "suggestion_prompts", "tags"]:
if key in existing_meta and existing_meta[key] is not None:
transformed_json["meta"][key] = existing_meta[key]
return transformed_json



def process_config(config_file, output_file="output.json"):
"""
Reads the JSON from the config file, transforms it, and writes to output file.

Args:
config_file: The path to the JSON config file.
output_file: The path to the output JSON file (default: output.json).
"""
try:
with open(config_file, 'r') as f:
data = json.load(f)
except FileNotFoundError:
print(f"Error: File '{config_file}' not found.")
return
except json.JSONDecodeError:
print(f"Error: Invalid JSON in '{config_file}'.")
return

if isinstance(data, list):
transformed_data = [transform_json(item) for item in data]
elif isinstance(data, dict):
transformed_data = transform_json(data)
else:
print("Error: Unexpected data type in config file. Expected list or dictionary.")
return

# Write to the output file
try:
with open(output_file, "w") as outfile:
json.dump(transformed_data, outfile, indent=4)
print(f"Transformed JSON written to {output_file}")
except Exception as e:
print(f"Error writing to output file: {e}")



if __name__ == "__main__":
config_file = "config.json"
process_config(config_file)
标题: 好消息:网盘的视频播放神器(苹果最爱)
作者: #lking
板块: #搞七捻三
编号: 506952
帖子: https://linux.do/t/topic/506952
时间: 2025-03-22 08:29:54
摘要:
刚发现个好物:网易爆米花,视频播放器
支持天翼云盘等多种网盘,
优势:自动形成视频的封面,并分类;最重要的是不用下载下来且画质为原画
感觉果机用的很爽
标题: 佬们有没有可以体验云算力的网站
作者: #Zoom
板块: #开发调优
编号: 506956
帖子: https://linux.do/t/topic/506956
时间: 2025-03-22 08:31:50
摘要:
想部署一个模型奈何环境不够用
标题: 大家有没有什么办法屏蔽手机已经安装的app?
作者: #裟心成仁
板块: #搞七捻三
编号: 506958
帖子: https://linux.do/t/topic/506958
时间: 2025-03-22 08:33:02
摘要:
我真服了,下了一个软件
关了读取系统软件权限,说我系统薄弱,不允许打开软件
开了权限,说我连点器不允许安,要求删掉,遂删;
删了连点器,说我Shizuku也不许安,要求删掉,遂删;
Shizuku删了,说我mt管理器也不许安,要求删掉,遂删;
mt管理器删了,特么V2ray也不许安,我直接绷不住了,这个软件没梯子还上不去,删删删什么都删,直接给我整红温了
问问论坛老哥有没有啥好办法,屏蔽这个软件不读取已经安装应用?或者把其他软件圈起来,让这个软件读取不到?甚至我还放了放原子隐私系统也不行,我直接炸了
标题: 你们都用那些方式重装系统?
作者: #F-Droid
板块: #开发调优
编号: 506961
帖子: https://linux.do/t/topic/506961
时间: 2025-03-22 08:33:54
摘要:
点击以查看投票。
标题: Qwen3 and Qwen3MoE 该上班了
作者: #Stevessr
板块: #前沿快讯
编号: 506968
帖子: https://linux.do/t/topic/506968
时间: 2025-03-22 08:43:03
摘要:
github.com/huggingface/transformers
















Adding Qwen3 and Qwen3MoE



main ← bozheng-hit:qwen3




已打开 09:35AM - 21 Mar 25 UTC





bozheng-hit





+5703
-0







# Adding Qwen3
This PR adds the support of codes for the coming Qwen3 models. F…or information about Qwen, please visit https://github.com/QwenLM/Qwen2.5. @ArthurZucker
标题: 哪里有稳定的Claude3-7可以用来跑aider?
作者: #IWJ
板块: #搞七捻三
编号: 506969
帖子: https://linux.do/t/topic/506969
时间: 2025-03-22 08:45:08
摘要:
价格合理,量大管饱的,有没有,不能掺假,不然没法玩了
标题: 你们用什么品牌的U盘安装Ventoy?
作者: #F-Droid
板块: #开发调优
编号: 506971
帖子: https://linux.do/t/topic/506971
时间: 2025-03-22 08:46:19
摘要:
之前用某宝上的便宜U盘安装Ventoy翻车了,想重新买一个好一点的,你们有什么推荐吗?
标题: 有没有大佬有关于电动车充电器改可调电源的资料
作者: #limobai
板块: #资源荟萃
编号: 506974
帖子: https://linux.do/t/topic/506974
时间: 2025-03-22 08:48:39
摘要:
网上搜了一圈,大部分都模棱两可的,并不详细。自己是个小白,想自己手改改一个来玩玩,有没有大佬分享下资料视频之类的,最好越详细越好。
标题: 熊老师12节论文求生指南视频课程
作者: #tomm
板块: #资源荟萃
编号: 506979
帖子: https://linux.do/t/topic/506979
时间: 2025-03-22 08:55:16
摘要:
我用夸克网盘分享了「熊老师12节论文求生指南视频课程」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。




pan.quark.cn





夸克网盘分享

夸克网盘是夸克推出的一款云服务产品,功能包括云存储、高清看剧、文件在线解压、PDF一键转换等。通过夸克网盘可随时随地管理和使用照片、文档、手机资料,目前支持Android、iOS、PC、iPad。
标题: 求助,深海的帖子怎么能搜索到
作者: #马
板块: #搞七捻三
编号: 506993
帖子: https://linux.do/t/topic/506993
时间: 2025-03-22 09:09:22
摘要:
突然发现宝藏都在深海藏着,但是好像搜索并不能搜索到,想问问大佬,有办法搜索吗?
@di_Li
标题: Tiger谭秋娟的吉他弹唱入门课(完结)
作者: #hvbw ui
板块: #资源荟萃
编号: 506994
帖子: https://linux.do/t/topic/506994
时间: 2025-03-22 09:10:03
摘要:
Tiger谭秋娟的吉他弹唱入门课(完结)
资源介绍:
想学吉他弹唱却无从下手?这套「Tiger谭秋娟的吉他弹唱入门课(完结)」由知名音乐人谭秋娟亲自教学,带你从零基础到轻松弹唱,开启你的音乐之旅。
在这套视频课程中,你将学到:

吉他基础指法与和弦的快速掌握方法
如何通过简单练习流畅切换和弦
热门歌曲的弹唱技巧,边学边唱更有趣
谭秋娟独家教学经验,让初学者少走弯路

无论你是音乐小白,还是想重拾吉他的爱好者,这套课程都能帮你快速上手。拿起吉他,跟随Tiger谭秋娟的节奏,随时随地弹唱出属于你的旋律!
链接直达:
点击获取资源
标题: roxybrowser收费方案出了
作者: #kwxos
板块: #前沿快讯
编号: 507006
帖子: https://linux.do/t/topic/507006
时间: 2025-03-22 09:17:52
摘要:
免费版只有5个窗口,创始用户6折优惠,特邀用户8折优惠
还有其他指纹浏览器推荐吗?平常只用得到10个左右,不经常用
标题: 有没有claude pro的车队?
作者: #桑榆
板块: #跳蚤市场
编号: 507011
帖子: https://linux.do/t/topic/507011
时间: 2025-03-22 09:20:57
摘要:
有没有claude pro的车队,大佬们拉一下,谢谢
标题: 你们都用什么鼠标?
作者: #F-Droid
板块: #开发调优
编号: 507012
帖子: https://linux.do/t/topic/507012
时间: 2025-03-22 09:21:37
摘要:
新电脑不送鼠标,我还要自己去配,网上的广告也非常多,看看你们有什么推荐的?
标题: 帮帮高中佬友完成一下调查问卷吧😎
作者: #JingxiPan
板块: #搞七捻三
编号: 507014
帖子: https://linux.do/t/topic/507014
时间: 2025-03-22 09:22:59
摘要:
这个是学校的作业,求求了!Microsoft Forms
标题: 夜晚的星星在白日变成了湖里的波光
作者: #烟雨花
板块: #搞七捻三
编号: 507019
帖子: https://linux.do/t/topic/507019
时间: 2025-03-22 09:25:19
摘要:
标题: passwall2的订阅链接中Fingerprint参数不会自动填充
作者: #魔幻之地
板块: #搞七捻三
编号: 507020
帖子: https://linux.do/t/topic/507020
时间: 2025-03-22 09:25:23
摘要:
链接中是有Fingerprint=chrome参数, 但是订阅后,这个参数是没有自动写入,改成fp=chrome也不行,pw版本是1.4-1,虽然不影响使用,每次更新都得手动改一遍也挺烦的。不知道是不旧版的参数不一样导致还是咋的,我用v2ray导出的链接格式,有大佬知道解决方法吗