Skip to content

Commit

Permalink
feat(sdk-js): add bigscience/bloomz-7b1
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jun 27, 2023
1 parent 4b6c309 commit 672344d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/embedbase-js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ClientDatasets {
public: boolean
}

export type LLM = 'openai/gpt-4' | 'openai/gpt-3.5-turbo-16k' | 'google/bison' // | 'tiiuae/falcon-7b' | 'bigscience/bloomz-7b1'
export type LLM = 'openai/gpt-4' | 'openai/gpt-3.5-turbo-16k' | 'google/bison' | 'bigscience/bloomz-7b1' //| 'tiiuae/falcon-7b'

export interface LLMDescription {
name: LLM
Expand Down
4 changes: 2 additions & 2 deletions sdk/embedbase-js/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ test('should be able to filter by metadata using where', async () => {
}, TIMEOUT)

test('should be able to chat', async () => {
for await (const res of embedbase.useModel('openai/gpt-3.5-turbo-16k').streamText('tell a story', {
for await (const res of embedbase.useModel('bigscience/bloomz-7b1').streamText('1+1=', {
// maxNewTokens: 10,
})) {
expect(res).toBeDefined()
Expand Down Expand Up @@ -390,7 +390,7 @@ test('should provide clear error message', async () => {
}, TIMEOUT)

test('should be able to generate text sync', async () => {
const res = await embedbase.useModel('tiiuae/falcon-7b').generateText('1+1=', {
const res = await embedbase.useModel('bigscience/bloomz-7b1').generateText('1+1=', {
maxNewTokens: 10,
})
expect(res).toBeDefined()
Expand Down

2 comments on commit 672344d

@vercel
Copy link

@vercel vercel bot commented on 672344d Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

embedbase – ./dashboard

embedbase.vercel.app
embedbase-prologe.vercel.app
embedbase-git-main-prologe.vercel.app
app.embedbase.xyz

@vercel
Copy link

@vercel vercel bot commented on 672344d Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.