You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because all the other parameters, most importantly baseURL, are ignored in the OpenAICUAClient:
// Store client options for reference
this.clientOptions = {
apiKey: this.apiKey,
};
// Initialize the OpenAI client
this.client = new OpenAI(this.clientOptions);
Ask
Could stagehand.agent support the whole export type ClientOptions = OpenAIClientOptions | AnthropicClientOptions; options, just like Stagehand constructor does?
At the very least, the baseURL (that nota bene seems to be passed in the AnthropicCUAClient.ts)
For bonus points: allow for a full llmClient override, just like in the Stagehand constructor to support custom instrumentation.
The text was updated successfully, but these errors were encountered:
Background
Hi, when configuring
Stagehand
itself, you can override llmClient options, or even the wholellmClient
like this:💯
Problem
However when running
stagehand.agent
you can only set theapiKey
via:Because all the other parameters, most importantly
baseURL
, are ignored in theOpenAICUAClient
:Ask
Could
stagehand.agent
support the wholeexport type ClientOptions = OpenAIClientOptions | AnthropicClientOptions;
options, just likeStagehand
constructor does?At the very least, the
baseURL
(that nota bene seems to be passed in theAnthropicCUAClient.ts
)For bonus points: allow for a full
llmClient
override, just like in theStagehand
constructor to support custom instrumentation.The text was updated successfully, but these errors were encountered: