mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-05 11:22:58 +00:00
rebase from lancedb/main
This commit is contained in:
committed by
Weston Pace
parent
d39145c7e4
commit
fa13fb9392
@@ -38,6 +38,9 @@ export class OpenAIEmbeddingFunction implements EmbeddingFunction<string> {
|
||||
|
||||
this._openai = new Openai(configuration)
|
||||
this._modelName = modelName
|
||||
|
||||
|
||||
console.log({ op: this._openai.embeddings.create, md: this._modelName })
|
||||
}
|
||||
|
||||
async embed (data: string[]): Promise<number[][]> {
|
||||
|
||||
@@ -24,6 +24,7 @@ const OpenAIApi = require('openai')
|
||||
const { stub } = require('sinon')
|
||||
|
||||
describe('OpenAPIEmbeddings', function () {
|
||||
|
||||
const stubValue = {
|
||||
data: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user