modelscope / modelscope/ms-swift
希望swift能够提供完整的openai兼容接口,兼容基于文件的离线批处理
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 1.7k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 136
Description
Describe the feature
Please describe the feature requested here(请在这里描述需求)
希望swift支持完整的openai接口,支持基于文件的离线批处理操作,
用openai的接口上传文件然后python代码中调用 client.batches.create(input_file_id=input_file_id, endpoint=endpoint,
completion_window=completion_window, metadata=metadata) 提交批处理任务
因为很多项目是基于openai开发的,直接迁移到swift很多api不受支持,改造成本较大,无法平滑迁移
Paste any useful information
Paste any useful information, including papers, github links, etc.(请在这里描述其他有用的信息,比如相关的论文地址,github链接等)
参考百炼平台的调用方式:https://bailian.console.aliyun.com/?spm=5176.29619931.J__Z58Z6CX7MY__Ll8p1ZOR.1.217b521cXdvrnj&tab=api#/api/?type=model&url=2842025
Additional context
Add any other context or information here(其他信息可以写在这里)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reviewing how ms-swift currently exposes model APIs, then compare the requested OpenAI client flow—file upload and client.batches.create—with the linked Bailian reference. Done should include a defined compatibility scope and working file-based offline batch submission, but the issue does not specify acceptance tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100