Skip to content

Commit

Permalink
[editor][easy] Add 'model' to relevant Prompt Schemas
Browse files Browse the repository at this point in the history
# [editor][easy] Add 'model' to relevant Prompt Schemas

There is still some investigation needed to know how to handle model vs parser nicely in the editor UX. For now, let's just expose the 'model' option in the settings for those parsers that support it to ensure the usage of those parsers won't be blocked.
  • Loading branch information
Ryan Holinshead committed Jan 8, 2024
1 parent 28bdd2a commit 4f96967
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const DalleImageGenerationParserPromptSchema: PromptSchema = {
model_settings: {
type: "object",
properties: {
model: {
type: "string",
},
n: {
type: "integer",
minimum: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export const OpenAIChatModelParserPromptSchema: PromptSchema = {
model_settings: {
type: "object",
properties: {
model: {
type: "string",
},
system_prompt: {
type: "string",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const PaLMChatParserPromptSchema: PromptSchema = {
model_settings: {
type: "object",
properties: {
model: {
type: "string",
},
context: {
type: "string",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const PaLMTextParserPromptSchema: PromptSchema = {
model_settings: {
type: "object",
properties: {
model: {
type: "string",
},
candidate_count: {
type: "integer",
minimum: 1,
Expand Down

0 comments on commit 4f96967

Please sign in to comment.