kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
37 wiersze
645 B
Plaintext
37 wiersze
645 B
Plaintext
![]() |
---
|
||
|
title: Bing
|
||
|
description: Bing web search API client.
|
||
|
---
|
||
|
|
||
|
- package: `@agentic/bing`
|
||
|
- exports: `class BingClient`, `namespace bing`
|
||
|
- env vars: `BING_API_KEY`
|
||
|
- [source](https://github.com/transitive-bullshit/agentic/blob/main/packages/bing/src/bing-client.ts)
|
||
|
- [api docs](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)
|
||
|
|
||
|
## Install
|
||
|
|
||
|
<CodeGroup>
|
||
|
```bash npm
|
||
|
npm install @agentic/bing
|
||
|
```
|
||
|
|
||
|
```bash yarn
|
||
|
yarn add @agentic/bing
|
||
|
```
|
||
|
|
||
|
```bash pnpm
|
||
|
pnpm add @agentic/bing
|
||
|
```
|
||
|
|
||
|
</CodeGroup>
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```ts
|
||
|
import { BingClient } from '@agentic/bing'
|
||
|
|
||
|
const bing = new BingClient()
|
||
|
const res = await bing.search('latest news')
|
||
|
```
|