Skip to content

希望swift能够提供完整的openai兼容接口,兼容基于文件的离线批处理 #5748

@skyxiaowang

Description

@skyxiaowang

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(其他信息可以写在这里)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions