fix: fix server terminology with mode aliases (#277)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* E2E Tests for LettaBot
|
||||
*
|
||||
* These tests use a real Letta Cloud agent to verify the full message flow.
|
||||
* These tests use a real Letta API agent to verify the full message flow.
|
||||
* Requires LETTA_API_KEY and LETTA_E2E_AGENT_ID environment variables.
|
||||
*
|
||||
* Run with: npm run test:e2e
|
||||
@@ -17,7 +17,7 @@ import { join } from 'node:path';
|
||||
// Skip if no API key (local dev without secrets)
|
||||
const SKIP_E2E = !process.env.LETTA_API_KEY || !process.env.LETTA_E2E_AGENT_ID;
|
||||
|
||||
describe.skipIf(SKIP_E2E)('e2e: LettaBot with Letta Cloud', () => {
|
||||
describe.skipIf(SKIP_E2E)('e2e: LettaBot with Letta API', () => {
|
||||
let bot: LettaBot;
|
||||
let mockAdapter: MockChannelAdapter;
|
||||
let tempDir: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* E2E Tests for Model API
|
||||
*
|
||||
* Tests model listing and retrieval against Letta Cloud.
|
||||
* Tests model listing and retrieval against Letta API.
|
||||
* Requires LETTA_API_KEY and LETTA_E2E_AGENT_ID environment variables.
|
||||
*
|
||||
* Run with: npm run test:e2e
|
||||
@@ -13,10 +13,10 @@ import { listModels, getAgentModel } from '../src/tools/letta-api.js';
|
||||
const SKIP_E2E = !process.env.LETTA_API_KEY || !process.env.LETTA_E2E_AGENT_ID;
|
||||
|
||||
describe.skipIf(SKIP_E2E)('e2e: Model API', () => {
|
||||
it('lists available models from Letta Cloud', async () => {
|
||||
it('lists available models from Letta API', async () => {
|
||||
const models = await listModels();
|
||||
expect(models.length).toBeGreaterThan(0);
|
||||
// Known providers should always exist on Letta Cloud
|
||||
// Known providers should always exist on Letta API
|
||||
const handles = models.map(m => m.handle);
|
||||
expect(handles.some(h => h.includes('anthropic') || h.includes('openai'))).toBe(true);
|
||||
}, 30000);
|
||||
|
||||
Reference in New Issue
Block a user