Skip to content

【feature】model支持能否添加oneapi支持 #289

@QiuZiXian

Description

@QiuZiXian

lagent.llms的GPTAPI似乎没有适配通用的openai风格接口。
比如尝试修改模型中gpt4。使用代理链接的openai(使用openai)
gpt4 = dict(
type=GPTAPI,
model_type="gpt-3.5-turbo",
key=os.environ.get("OPENAI_API_KEY", "sk-IXgCT4aDeE6830c5e"),
api_base=os.environ.get("OPENAI_API_BASE",
"http://192.00/v1/chat/completions"),
)
请求失败。
如果使用直连模型。GPTAPI又限制了模型名称。
简而言之,能否添加通用的openai风格模型接口,譬如oneapi。
最后,该开源项目非常优秀,非常感谢

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