update sdk tests
This commit is contained in:
parent
eb874a728d
commit
db1e6a8d2f
2 changed files with 8 additions and 4 deletions
|
|
@ -47,11 +47,9 @@ export function createOpenAIClient({
|
|||
apiKey,
|
||||
baseURL = "https://api.continue.dev/",
|
||||
}: OpenAIClientOptions): OpenAI {
|
||||
const proxyBaseURL = new URL("model-proxy/v1/", baseURL).toString();
|
||||
|
||||
return new OpenAI({
|
||||
apiKey,
|
||||
baseURL: proxyBaseURL,
|
||||
baseURL: new URL("model-proxy/v1/", baseURL).toString(),
|
||||
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => {
|
||||
// Clone the init object to avoid modifying the original
|
||||
const modifiedInit = init ? { ...init } : {};
|
||||
|
|
|
|||
|
|
@ -4,7 +4,13 @@ import { Continue } from "../src/Continue";
|
|||
|
||||
dotenv.config();
|
||||
|
||||
test("should make a real API call to the Continue service", async () => {
|
||||
/**
|
||||
* This test is `.skip`'d for now becasue it requires a real API key
|
||||
* and a real assistant to be set up in the Continue Hub.
|
||||
*
|
||||
* The primary use case for now is to aid in local iteration on the SDK.
|
||||
*/
|
||||
test.skip("should make a real API call to the Continue service", async () => {
|
||||
const apiKey = process.env.CONTINUE_API_KEY;
|
||||
|
||||
if (!apiKey) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue