Skip to content

Commit

Permalink
fix: removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Feb 29, 2024
1 parent e469a69 commit 56a7ac1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
38 changes: 0 additions & 38 deletions src/apis/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,41 +34,3 @@ export class Embeddings extends ApiResource {
return response
}
}


// export class Embeddings extends ApiResource {
// async create(
// _body: EmbeddingsBody,
// params?: ApiClientInterface,
// opts?: RequestOptions
// ): Promise<any> {
// const body : EmbeddingsBody = _body
// const params1 = params
// // console.log("embeddings class: PRE: openai_client", this.client.openai_client);

// if (params) {
// const config = overrideConfig(this.client.config, params.config)
// this.client.customHeaders = { ...this.client.customHeaders, ...createHeaders({ ...params, config }) }
// }

// // console.log("embeddings class: body:", body);
// // console.log("embeddings class: params1:", params1);
// // console.log("embeddings class: opts1:", opts);
// // console.log("embeddings class: customHeaders", this.client.customHeaders);
// // console.log("embeddings class: POST openai_client", this.client.openai_client);

// const OAIclient = new OpenAI({
// apiKey: OPEN_AI_API_KEY,
// baseURL: PORTKEY_DEV_BASE_URL,
// defaultHeaders: this.client.customHeaders

// })
// const result = await OAIclient.embeddings.create(body, opts)
// // const result = await this.openai_client.embeddings.create(body, opts)
// // console.log("RESULT:", result);
// return result;

// // const response = this.post<EmbeddingsResponse>(EMBEDDINGS_API, { body, ...opts })
// // return response
// }
// }
3 changes: 0 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ export class Portkey extends ApiClient {
Authorization,
cacheForceRefresh,
});

// console.log("Portkey Class: OpenAI client: ", this.openai_client);


this.apiKey = apiKey;
if (!this.apiKey) {
Expand Down

0 comments on commit 56a7ac1

Please sign in to comment.