kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/714/head
rodzic
66f8c1e900
commit
849073962a
|
@ -114,6 +114,8 @@ export function createJsonSchema<TData = unknown>(
|
||||||
): AgenticSchema<TData> {
|
): AgenticSchema<TData> {
|
||||||
parse ??= (value: unknown) => {
|
parse ??= (value: unknown) => {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
|
// TODO: better error messages for invalid JSON so the LLM has a better
|
||||||
|
// feedback loop.
|
||||||
value = JSON.parse(jsonrepair(value))
|
value = JSON.parse(jsonrepair(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
todo.md
7
todo.md
|
@ -24,9 +24,14 @@
|
||||||
- create agentic products for legacy tools
|
- create agentic products for legacy tools
|
||||||
- add basic legal terms and privacy policy (and update links in stripe)
|
- add basic legal terms and privacy policy (and update links in stripe)
|
||||||
- add caching to public projects api endpoints
|
- add caching to public projects api endpoints
|
||||||
- add support for [`@google/genai`](https://github.com/googleapis/js-genai) tools adapter and examples
|
- add support for [`@google/genai`](https://github.com/googleapis/js-genai) tools adapter
|
||||||
- fix gateway sentry deployment upload
|
- fix gateway sentry deployment upload
|
||||||
- add feature about optimized context to marketing site
|
- add feature about optimized context to marketing site
|
||||||
|
- ensure all agentic tool inputSchemas support openai strict mode by default
|
||||||
|
- openapi tool extraction currently supports optional properties
|
||||||
|
- mcp tool inputSchemas may not support openai strict mode either
|
||||||
|
- maybe default `strict` to `false` in `createAIFunction` for now?
|
||||||
|
- also add `@agentic/json-schema` to `createJsonSchema` parsing instead of current no-op
|
||||||
|
|
||||||
## TODO: Post-MVP
|
## TODO: Post-MVP
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue