kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/691/head
rodzic
bfab571c92
commit
3a47262716
|
@ -34,5 +34,9 @@ pnpm add @agentic/hacker-news
|
|||
import { HackerNewsClient } from '@agentic/hacker-news'
|
||||
|
||||
const hn = new HackerNewsClient()
|
||||
const res = await hn.getTopStories()
|
||||
const res = await hn.searchItems({
|
||||
query: 'example query',
|
||||
tags: ['story'],
|
||||
numericFilters: ['points>100']
|
||||
})
|
||||
```
|
||||
|
|
|
@ -189,7 +189,8 @@ export function throttleKy(
|
|||
|
||||
/**
|
||||
* Creates a new `URLSearchParams` object with all values coerced to strings
|
||||
* that correctly handles arrays of values as repeated keys.
|
||||
* that correctly handles arrays of values as repeated keys (or CSV) and
|
||||
* correctly removes `undefined` keys and values.
|
||||
*/
|
||||
export function sanitizeSearchParams(
|
||||
searchParams:
|
||||
|
|
|
@ -64,7 +64,10 @@ export class WolframAlphaClient extends AIFunctionsProvider {
|
|||
}
|
||||
|
||||
/**
|
||||
* Answers computational, mathematical, and scientific questions.
|
||||
*
|
||||
* WolframAlpha understands natural language queries about entities in chemistry, physics, geography, history, art, astronomy, and more.
|
||||
*
|
||||
* WolframAlpha performs mathematical calculations, date and unit conversions, formula solving, etc.
|
||||
*/
|
||||
@aiFunction({
|
||||
|
|
Ładowanie…
Reference in New Issue