Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support arbitrary attributes inModelSettings for use by OpenAI compatible providers #1101

Closed
Assignees
Kludex
@wes-augur

Description

@wes-augur

Description

ModelSettings currently only forwardsallow-listed attributes into the HTTP request body.

TheOpenAIModel is used by compatible providers, such asOpenRouter, which accept numerous custom parameters in the request body such asmodel-routing andprovider-routing.

As far as I can tell, the only way to inject custom parameters into the HTTP request body is to subclassOpenAIModel and reimplement a relatively large block of code.

I'd like a way to easily define custom model settings such as by sub-classingModelSettings or by forwarding arbitraryModelSettings attributes on to the HTTP request, or both.

References

Issue#856 (comment) is another issue where this topic was discussed and PR#1006 proposes allowing arbitrary attributes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp