transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.27k stars 2.13k forks source link

Can you make a function that supports systemMessages for ChatGPTUnofficialProxyAPI #488

Closed zhengdechang closed 1 year ago

zhengdechang commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

none

Describe the Bug

I want to use token access and then carry systemM essage

transitive-bullshit commented 1 year ago

@zhengdechang you can use the promptPrefix option of the ChatGPTUnofficialProxyAPI.sendMessage function.

The unofficial API doesn't have the concept of a systemMessage, but you can use the promptPrefix to override the default instructions and provide system-like instructions.

zhengdechang commented 1 year ago

I did not see the promptPrefix parameter in the ChatGPTAPIOptions type,Can you provide examples?

ashuvax commented 1 year ago

@transitive-bullshit We would be happy to receive your answer, it's important to me too