kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic
rodzic
3b153e1fe2
commit
1a36d1ea5e
|
@ -34,5 +34,9 @@ pnpm add @agentic/hacker-news
|
||||||
import { HackerNewsClient } from '@agentic/hacker-news'
|
import { HackerNewsClient } from '@agentic/hacker-news'
|
||||||
|
|
||||||
const hn = new HackerNewsClient()
|
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
|
* 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(
|
export function sanitizeSearchParams(
|
||||||
searchParams:
|
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 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.
|
* WolframAlpha performs mathematical calculations, date and unit conversions, formula solving, etc.
|
||||||
*/
|
*/
|
||||||
@aiFunction({
|
@aiFunction({
|
||||||
|
|
Ładowanie…
Reference in New Issue