We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
endpointUrl
1 parent 94a757e commit 335c293Copy full SHA for 335c293
packages/tiny-agents/src/cli.ts
@@ -116,7 +116,8 @@ async function main() {
116
117
const ConfigSchema = z.object({
118
model: z.string(),
119
- provider: z.enum(PROVIDERS_OR_POLICIES),
+ provider: z.enum(PROVIDERS_OR_POLICIES).optional(),
120
+ endpointUrl: z.string().optional(),
121
servers: z.array(ServerConfigSchema),
122
});
123
@@ -131,8 +132,9 @@ async function main() {
131
132
133
const agent = new Agent({
134
provider: config.provider,
135
+ endpointUrl: config.endpointUrl,
136
model: config.model,
- apiKey: process.env.HF_TOKEN ?? "",
137
+ apiKey: process.env.HF_TOKEN,
138
servers: config.servers,
139
prompt,
140
0 commit comments