kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/719/head
rodzic
c668213adb
commit
b33bf065b0
|
@ -122,10 +122,9 @@ export class ArXivClient extends AIFunctionsProvider {
|
||||||
apiBaseUrl = arxiv.API_BASE_URL,
|
apiBaseUrl = arxiv.API_BASE_URL,
|
||||||
ky = defaultKy
|
ky = defaultKy
|
||||||
}: {
|
}: {
|
||||||
apiKey?: string
|
|
||||||
apiBaseUrl?: string
|
apiBaseUrl?: string
|
||||||
ky?: KyInstance
|
ky?: KyInstance
|
||||||
}) {
|
} = {}) {
|
||||||
super()
|
super()
|
||||||
|
|
||||||
this.apiBaseUrl = apiBaseUrl
|
this.apiBaseUrl = apiBaseUrl
|
||||||
|
|
|
@ -347,7 +347,7 @@ export class RedditClient extends AIFunctionsProvider {
|
||||||
* @see https://old.reddit.com/dev/api/#GET_hot
|
* @see https://old.reddit.com/dev/api/#GET_hot
|
||||||
*/
|
*/
|
||||||
@aiFunction({
|
@aiFunction({
|
||||||
name: 'reddit_get_subreddit_posts',
|
name: 'get_subreddit_posts',
|
||||||
description: 'Fetches posts from a subreddit.',
|
description: 'Fetches posts from a subreddit.',
|
||||||
inputSchema: z.object({
|
inputSchema: z.object({
|
||||||
subreddit: z.string().describe('The subreddit to fetch posts from.'),
|
subreddit: z.string().describe('The subreddit to fetch posts from.'),
|
||||||
|
|
1
todo.md
1
todo.md
|
@ -39,6 +39,7 @@
|
||||||
- add search / sorting
|
- add search / sorting
|
||||||
- add admin-based tags for main page layout (featured, etc)
|
- add admin-based tags for main page layout (featured, etc)
|
||||||
- replace render for api and/or add turbo for caching (too slow to deploy)
|
- replace render for api and/or add turbo for caching (too slow to deploy)
|
||||||
|
- public-project limit `description` to max 5 lines and show ellipsis
|
||||||
|
|
||||||
## TODO: Post-MVP
|
## TODO: Post-MVP
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue