Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bing-sydney-ai

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bing-sydney-ai

``` npm install bing-sydney-ai ```

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
npm install bing-sydney-ai

Examples

import { SydneyClient } from "./sydney";
import Message from "./sydney/Message";
import SearchResult from "./sydney/SearchResult";

(async () => {
    let sydney = new SydneyClient();
    await sydney.startConversation();
    sydney.setSearch(false);
    let response: Message = await sydney.ask('what do you see on this image?', {
        attachment: 'test.png',
        
        webSearch: (search: SearchResult[]) => {
            console.log('Web search results:');

            for (let searchResult of search) {
                console.log('Title:', searchResult.title);
                console.log('URL:', searchResult.url);
                console.log('Snippets:', searchResult.snippets.join('\n'));
                console.log('---');
            }
        },
        messageUpdate: (message: Message) => {
            console.log('Message update:', message.text);
        },
        messageAdded: (message: Message) => {
            console.log('Message added:', message.text);
        }
    });

    console.log('Response:', response.text);
    console.log('suggested responses:', response.suggestedResponses);
})();

Contribute

https://github.com/borsuczyna/bing-sydney-ai

Keywords

FAQs

Package last updated on 07 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc