Skip to content

Commit 385002c

Browse files
author
Andrei Bratu
committed
Better messages around instrumented provider
1 parent e5fad7c commit 385002c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/humanloop.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class HumanloopClient extends BaseHumanloopClient {
109109
* Constructs a new instance of the Humanloop client.
110110
*
111111
* @param _options - The base options for the Humanloop client.
112-
* @param providerModules - LLM provider clients to instrument by File utilities.
112+
* @param providerModules - LLM provider modules to instrument. Pass all LLM providers that you will use in your program if you intend to use File utilities such as `prompt()`.
113113
*/
114114
constructor(
115115
_options: BaseHumanloopClient.Options,
@@ -175,7 +175,7 @@ export class HumanloopClient extends BaseHumanloopClient {
175175
].every((p) => !p);
176176
if (noProviderInstrumented) {
177177
throw new Error(
178-
`${func.name}: You must pass at least one LLM client library in the Humanloop client constructor. Otherwise the prompt() utility will not work properly.`,
178+
`${func.name}: To use the 'prompt()' utility, pass your LLM client library into the Humanloop client constructor; e.g. 'HumanloopClient(..., { providerModules: {OpenAI} } )'.`,
179179
);
180180
}
181181
}

0 commit comments

Comments
 (0)